diff options
author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2012-11-13 19:10:21 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-11-13 17:00:06 -0500 |
commit | a95b2d6d41fb9cf0687f25cae57868eda9b7b04c (patch) | |
tree | 1a2226cb6d93833b9cc02f84cfaad6d675b2ba9e /src/noop-renderer.c | |
parent | 4415450ef1439e3a8e76244eb5d95c5a260cc621 (diff) |
compositor: Add a renderer function to read out pixels
Diffstat (limited to 'src/noop-renderer.c')
-rw-r--r-- | src/noop-renderer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/noop-renderer.c b/src/noop-renderer.c index 116fc004..76f1e8fd 100644 --- a/src/noop-renderer.c +++ b/src/noop-renderer.c @@ -26,6 +26,15 @@ #include "compositor.h" +static int +noop_renderer_read_pixels(struct weston_output *output, + pixman_format_code_t format, void *pixels, + uint32_t x, uint32_t y, + uint32_t width, uint32_t height) +{ + return 0; +} + static void noop_renderer_repaint_output(struct weston_output *output, pixman_region32_t *output_damage) @@ -64,6 +73,7 @@ noop_renderer_init(struct weston_compositor *ec) if (renderer == NULL) return -1; + renderer->read_pixels = noop_renderer_read_pixels; renderer->repaint_output = noop_renderer_repaint_output; renderer->flush_damage = noop_renderer_flush_damage; renderer->attach = noop_renderer_attach; |