mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
Replace cogl_path_{stroke,fill} with framebuffer API
The existing functions for stroking and filling a path depend on the global framebuffer and source stacks. These are now replaced with cogl_framebuffer_{stroke,fill}_path which get explicitly passed the framebuffer and pipeline. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 713a8f8160bc5884b091c69eb7a84b069e0950e6)
This commit is contained in:

committed by
Robert Bragg

parent
54735dec84
commit
8dd77de009
@ -437,6 +437,7 @@ _cogl_pango_display_list_render (CoglPangoDisplayList *dl,
|
||||
|
||||
case COGL_PANGO_DISPLAY_LIST_TRAPEZOID:
|
||||
{
|
||||
CoglFramebuffer *framebuffer = cogl_get_draw_framebuffer ();
|
||||
float points[8];
|
||||
CoglPath *path;
|
||||
|
||||
@ -453,7 +454,7 @@ _cogl_pango_display_list_render (CoglPangoDisplayList *dl,
|
||||
|
||||
path = cogl_path_new ();
|
||||
cogl_path_polygon (path, points, 4);
|
||||
cogl_path_fill (path);
|
||||
cogl_framebuffer_fill_path (framebuffer, node->pipeline, path);
|
||||
cogl_object_unref (path);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user