diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2013-10-25 16:26:33 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-25 12:21:51 -0700 |
commit | aa398ae1f333306e25f681846749696bf1936f8e (patch) | |
tree | bb23c34aaffe29315d5902e17b526ec8f9357365 /src/noop-renderer.c | |
parent | 6b16214fb93cdea23f2f79409070fd16b6845a5b (diff) |
compositor: Let renderers create and destroy surface state on their own
Remove create_surface() and destroy_surface() from the renderer
interface and change the renderers to create surface state on demand
and destroy it using the weston_surface's destroy signal.
Also make sure the surfaces' renderer state is reset to NULL on
destruction.
This is a step towards runtime switchable renderers.
(rpi-renderer changes are only compile-tested)
Diffstat (limited to 'src/noop-renderer.c')
-rw-r--r-- | src/noop-renderer.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/noop-renderer.c b/src/noop-renderer.c index 91659f58..ad750b5a 100644 --- a/src/noop-renderer.c +++ b/src/noop-renderer.c @@ -51,12 +51,6 @@ noop_renderer_attach(struct weston_surface *es, struct weston_buffer *buffer) { } -static int -noop_renderer_create_surface(struct weston_surface *surface) -{ - return 0; -} - static void noop_renderer_surface_set_color(struct weston_surface *surface, float red, float green, float blue, float alpha) @@ -64,11 +58,6 @@ noop_renderer_surface_set_color(struct weston_surface *surface, } static void -noop_renderer_destroy_surface(struct weston_surface *surface) -{ -} - -static void noop_renderer_destroy(struct weston_compositor *ec) { free(ec->renderer); @@ -88,9 +77,7 @@ noop_renderer_init(struct weston_compositor *ec) renderer->repaint_output = noop_renderer_repaint_output; renderer->flush_damage = noop_renderer_flush_damage; renderer->attach = noop_renderer_attach; - renderer->create_surface = noop_renderer_create_surface; renderer->surface_set_color = noop_renderer_surface_set_color; - renderer->destroy_surface = noop_renderer_destroy_surface; renderer->destroy = noop_renderer_destroy; ec->renderer = renderer; |