mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
73e8a6d7ce
Consistent with how we lazily allocate framebuffers this patch allows us to instantiate textures but still specify constraints and requirements before allocating storage so that we can be sure to allocate the most appropriate/efficient storage. This adds a cogl_texture_allocate() function that is analogous to cogl_framebuffer_allocate() which can optionally be called to explicitly allocate storage and catch any errors. If this function isn't used explicitly then Cogl will implicitly ensure textures are allocated before the storage is needed. It is generally recommended to rely on lazy storage allocation or at least perform explicit allocation as late as possible so Cogl can be fully informed about the best way to allocate storage. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 1fa7c0f10a8a03043e3c75cb079a49625df098b7) Note: This reverts the cogl_texture_rectangle_new_with_size API change that dropped the CoglError argument and keeps the semantics of allocating the texture immediately. This is because Mutter currently uses this API so we will probably look at updating this later once we have a corresponding Mutter patch prepared. The other API changes were kept since they only affected experimental api. |
||
---|---|---|
.. | ||
config.env.in | ||
Makefile.am | ||
run-tests.sh | ||
test-alpha-test.c | ||
test-alpha-textures.c | ||
test-atlas-migration.c | ||
test-backface-culling.c | ||
test-bitmask.c | ||
test-blend-strings.c | ||
test-color-mask.c | ||
test-conform-main.c | ||
test-custom-attributes.c | ||
test-depth-test.c | ||
test-euler-quaternion.c | ||
test-fixed.c | ||
test-fixtures.c | ||
test-gles2-context.c | ||
test-just-vertex-shader.c | ||
test-launcher.sh.in | ||
test-layer-remove.c | ||
test-map-buffer-range.c | ||
test-materials.c | ||
test-multitexture.c | ||
test-no-gl-header.c | ||
test-npot-texture.c | ||
test-object.c | ||
test-offscreen.c | ||
test-path.c | ||
test-pipeline-uniforms.c | ||
test-pipeline-user-matrix.c | ||
test-pixel-buffer.c | ||
test-point-size.c | ||
test-point-sprite.c | ||
test-premult.c | ||
test-primitive.c | ||
test-read-texture-formats.c | ||
test-readpixels.c | ||
test-snippets.c | ||
test-sparse-pipeline.c | ||
test-sub-texture.c | ||
test-texture-3d.c | ||
test-texture-get-set-data.c | ||
test-texture-mipmaps.c | ||
test-texture-pixmap-x11.c | ||
test-texture-rectangle.c | ||
test-utils.c | ||
test-utils.h | ||
test-version.c | ||
test-vertex-buffer-contiguous.c | ||
test-vertex-buffer-interleved.c | ||
test-vertex-buffer-mutability.c | ||
test-viewport.c | ||
test-wrap-modes.c | ||
test-write-texture-formats.c |