summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorGeorge Matsumura <gmmatsumura01@bvsd.org>2020-08-05 23:10:42 -0600
committerGeorge Matsumura <gmmatsumura01@bvsd.org>2020-08-25 02:30:58 -0600
commitecbd7ed1740485ccb2be29326ffa6e5ace1df2a7 (patch)
tree5c2bd8ca4d74d0ff8c86833753b288fd90801fa1 /boilerplate
parent939da43c44ec28b278db36ab744a1176bbdfa890 (diff)
downloadcairo-ecbd7ed1740485ccb2be29326ffa6e5ace1df2a7.tar.gz
cogl: Add new path cache
This redesigns the path cache so that it does not mess with the context functions, thereby hopefully making it much more resilient to changes in the rest of cairo that change the way the default context works. It is also much simpler, and it is anticipated that it will be more maintainable. Performance in contrast to the old cache design speeds up most traces in cairo-perf-trace, and slows down only a lesser few by <20%. Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate-cogl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/boilerplate/cairo-boilerplate-cogl.c b/boilerplate/cairo-boilerplate-cogl.c
index c293b3932..2339dd883 100644
--- a/boilerplate/cairo-boilerplate-cogl.c
+++ b/boilerplate/cairo-boilerplate-cogl.c
@@ -119,12 +119,12 @@ _cairo_boilerplate_cogl_create_onscreen_color_surface (const char *name,
height = 1;
if (content & CAIRO_CONTENT_ALPHA) {
- /* A hackish way to ensure that we get a framebuffer with
- * an alpha component */
- CoglSwapChain *swap_chain;
- CoglOnscreenTemplate *onscreen_template;
- CoglRenderer *renderer;
- CoglDisplay *display;
+ /* A hackish way to ensure that we get a framebuffer with
+ * an alpha component */
+ CoglSwapChain *swap_chain;
+ CoglOnscreenTemplate *onscreen_template;
+ CoglRenderer *renderer;
+ CoglDisplay *display;
swap_chain = cogl_swap_chain_new ();
cogl_swap_chain_set_has_alpha (swap_chain, TRUE);