summaryrefslogtreecommitdiff
path: root/src/noop-renderer.c
Commit message (Collapse)AuthorAgeFilesLines
* noop-renderer: Read the shm buffer contents on attachEmilio Pozuelo Monfort2014-02-181-2/+20
| | | | | | | | | | The noop-renderer doesn't read buffer contents, which means bad buffers go undetected. Thus, read the buffer contents just for the purpose of triggering SIGBUS (and having the client killed). Fixes the bad-buffer test when run against the headless backend. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
* noop-renderer: Set the buffer size on attach requestsEmilio Pozuelo Monfort2014-02-181-0/+15
| | | | | | | | This lets the compositor know the size of the surface as calculated in weston_surface_set_size_from_buffer(), and fixes a couple of tests when using the headless backend. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
* compositor: Let renderers create and destroy surface state on their ownAnder Conselvan de Oliveira2013-10-251-13/+0
| | | | | | | | | | | | | 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)
* Add a weston_buffer structure to replace wl_bufferJason Ekstrand2013-06-211-1/+1
| | | | | | | | | This commit adds a weston_buffer structure to replace wl_buffer. This way we can hold onto buffers by just their resource. In order to do this, the every renderer.attach function has to fill in the weston_buffer.width and weston_buffer.height fields. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* configure.ac: Enable AC_USE_SYSTEM_EXTENSIONSDaniel Stone2013-06-051-1/+1
| | | | | | | | | | | | | | | | | | AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar macros to expose the largest extent of functionality supported by the underlying system. This is required since these macros are often limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually on some systems hide declarations which are not part of the X/Open spec. Since this goes into config.h rather than the command line, ensure all source is consistently including config.h before anything else, including system libraries. This doesn't need to be guarded by a HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org modular transition. Signed-off-by: Daniel Stone <daniel@fooishbar.org> [pq: rebased and converted more files]
* renderer: introduce destroy callbackVasily Khoruzhick2013-01-081-1/+2
| | | | Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
* noop-renderer: Remove unused variableKristian Høgsberg2012-11-271-1/+0
|
* compositor: Move surface color state to gles2-renderer.John Kåre Alsaker2012-11-131-0/+14
| | | | | | | This moves the surface color state into gles2-renderer. To do this it adds two new weston_renderer functions. create_surface to be able to create per-surface renderer state, and surface_set_color to set the color of a surface and changes it to a color surface.
* compositor: Add a renderer function to read out pixelsJohn Kåre Alsaker2012-11-131-0/+10
|
* Add a headless backendAnder Conselvan de Oliveira2012-11-081-0/+74
Add a headless backend and a noop renderer, mainly for testing purposes. Although no rendering is performed with this backend, this allow some of the code paths inside Weston and shm clients to be tested without any windowing system or any need for drm access.