223317c500
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. |
||
---|---|---|
.. | ||
cogl-context-winsys.c | ||
cogl-context-winsys.h | ||
cogl-egl.c | ||
cogl-fruity.c | ||
cogl-glx.c | ||
cogl-osx.c | ||
cogl-sdl.c | ||
cogl-texture-pixmap-x11-private.h | ||
cogl-texture-pixmap-x11.c | ||
cogl-texture-pixmap-x11.h | ||
cogl-win32.c | ||
cogl-winsys-feature-functions.h | ||
cogl-winsys.h | ||
cogl-xlib.c | ||
cogl-xlib.h |