<pre class="prettyprint">
evas_object_image_pixels_get_callback_set(ad->img, cairo_drawing, NULL);
</pre></li>
-<li>For using hardware-accelerated Cairo rendering, set <span style="font-family: Courier New,Courier,monospace">CAIRO_GL_COMPOSITOR</span> to MSAA compositor:
+<li>In order to use fast and optimized Cairo GLES rendering, set Cairo_GL_Compositor and Evasgl configurations:
<pre class="prettyprint">
setenv("CAIRO_GL_COMPOSITOR", "msaa", 1);
+ad->evas_gl_config->stencil_bits = EVAS_GL_STANCIL_BIT_8;
+ad->evas_gl_config->multisample_bits = EVAS_GL_MULTISAMPLE_MED;
</pre></li>
<li>To prevent unnecessary context switching in the Cairo evas-gl backend:
ad->evas_gl = evas_gl_new(evas_object_evas_get(ad->img));
ad->evas_gl_config = evas_gl_config_new();
ad->evas_gl_config->color_format = EVAS_GL_RGBA_8888;
+ ad->evas_gl_config->stencil_bits = EVAS_GL_STANCIL_BIT_8;
+ ad->evas_gl_config->multisample_bits = EVAS_GL_MULTISAMPLE_MED;
// Create a surface and context
ad->evas_gl_surface = evas_gl_surface_create(ad->evas_gl, ad->evas_gl_config, ad->width, ad->height);