diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-02-23 17:19:02 +0900 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-08 15:17:16 -0500 |
commit | b05ae79ee3bebef9790c97eedc033d1ffb3ec39a (patch) | |
tree | 7ce954d8eab54f32f40d61245989fb7c96db9621 /glamor/glamor_transform.h | |
parent | 947e94a341fa153258e9e86060b83af95934672b (diff) |
glamor: Factor out glamor_set_color_depth from glamor_set_color
The former takes explicit screen and depth parameters instead of
deriving them from a pixmap.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'glamor/glamor_transform.h')
-rw-r--r-- | glamor/glamor_transform.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/glamor/glamor_transform.h b/glamor/glamor_transform.h index ab7b2bcb3..5a520ebb0 100644 --- a/glamor/glamor_transform.h +++ b/glamor/glamor_transform.h @@ -33,9 +33,19 @@ glamor_set_destination_drawable(DrawablePtr drawable, int *p_off_y); void +glamor_set_color_depth(ScreenPtr pScreen, + int depth, + CARD32 pixel, + GLint uniform); + +static inline void glamor_set_color(PixmapPtr pixmap, CARD32 pixel, - GLint uniform); + GLint uniform) +{ + glamor_set_color_depth(pixmap->drawable.pScreen, + pixmap->drawable.depth, pixel, uniform); +} Bool glamor_set_texture_pixmap(PixmapPtr texture); |