[Wayland-bugs] [Bug 83878] New: Stop using cairo-egl in demo apps

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 15 03:35:17 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83878

          Priority: medium
            Bug ID: 83878
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: Stop using cairo-egl in demo apps
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: ppaalanen at gmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: weston
           Product: Wayland

Currently, the toytoolkit uses cairo-egl if it is available, which means it
will create an OpenGL or GLES context for Cairo drawing. This is wasteful, and
at least I recommend people to build Weston with --with-cairo=image anyway.

However, we have a few demos, that depend on cairo-gl or cairo-glesv2, and at
least one demo, which cannot run with cairo-gl because it directly uses GLESv2.
(Linking both GL and GLES into the same process is a bad idea.)

The demo apps that currently require cairo-egl (that is, cairo-gl or
cairo-glesv2), should be modified to not rely on Cairo for GL(ES).

A demo app, that used GL or GLES for rendering, should get the decorations from
toytoolkit as images, upload them to GL textures, and compose them into the
window. Obviously this is code that can be shared between many demo apps, but
it should not be in toytoolkit (window.c). It needs to be separate, so that the
toytoolkit does not pull in any EGL or GL libraries. Choosing the flavor of GL
must be up to the app.

Once this works correctly, using --with-cairo=image will not exclude any demo
apps from the build like it does now.

This would be a good project for someone new to get familiar with the demo
code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140915/c9e6e2a9/attachment.html>


More information about the Wayland-bugs mailing list