mutter/cogl/winsys
Neil Roberts 223317c500 cogl-texture: Share the common code in the get_data virtual
Previously cogl_texture_get_data would pretty much directly pass on to
the get_data texture virtual function. This ended up with a lot of
common code that was copied to all of the backends. For example, the
method is expected to return the required data size if the data
pointer is NULL and to calculate its own rowstride if the rowstride is
0. Also it needs to convert the downloaded data if GL can't support
that format directly.

This patch moves the common code to cogl-texture.c so the virtual is
always called with a format that can be downloaded directly by GL and
with a valid rowstride. If the download fails then the virtual can
return FALSE in which case cogl-texture will use the draw and read
fallback.
2010-07-09 11:00:48 +01:00
..
cogl-context-winsys.c Add a CoglTexturePixmapX11 texture backend 2010-06-22 12:22:48 +01:00
cogl-context-winsys.h texture-pixmap-x11: don't assume anything about the GLXFBConfig type 2010-06-22 16:53:59 +01:00
cogl-egl.c egl: Consolidates eglx and eglnative into one "egl" winsys 2010-06-18 17:38:41 +01:00
cogl-fruity.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-glx.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-osx.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-sdl.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-pixmap-x11-private.h Add a CoglTexturePixmapX11 texture backend 2010-06-22 12:22:48 +01:00
cogl-texture-pixmap-x11.c cogl-texture: Share the common code in the get_data virtual 2010-07-09 11:00:48 +01:00
cogl-texture-pixmap-x11.h cogl: declare experimental symbols consistently 2010-06-30 18:51:31 +01:00
cogl-win32.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-winsys-feature-functions.h Add a CoglTexturePixmapX11 texture backend 2010-06-22 12:22:48 +01:00
cogl-winsys.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-xlib.c cogl: Add _cogl_xlib_{,un}trap_errors 2010-06-22 12:22:47 +01:00
cogl-xlib.h cogl: Add _cogl_xlib_{,un}trap_errors 2010-06-22 12:22:47 +01:00