skia2/tools/gpu
Brian Osman 9ad1f92e2f Add GrExternalTextureData and SkCrossContextImageData
GrExternalTextureData is an API for exporting the backend-specific
information about a texture in a type-safe way, and without pointing
into the GrTexture. The new detachBackendTexture API lets us release
ownership of a texture to the client.

SkCrossContextImageData is the public API that lets clients upload
textures on one thread/GrContext, then safely transfer ownership to
another thread and GrContext for rendering.

Only GL is implemented/supported right now. Vulkan support requires
that we add thread-safe memory pools, or otherwise transfer the
actual memory block containing the texture to the new context.

BUG=skia:

Change-Id: I784a3a74be69807df038c7d192eaed002c7e45ca
Reviewed-on: https://skia-review.googlesource.com/8529
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2017-02-24 16:09:33 +00:00
..
gl Add GrExternalTextureData and SkCrossContextImageData 2017-02-24 16:09:33 +00:00
vk Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
FenceSync.h skpbench: add option for gpu timing 2016-10-05 08:42:03 -07:00
GpuTimer.h skpbench: add option for gpu timing 2016-10-05 08:42:03 -07:00
GrContextFactory.cpp Add GrExternalTextureData and SkCrossContextImageData 2017-02-24 16:09:33 +00:00
GrContextFactory.h Add GrExternalTextureData and SkCrossContextImageData 2017-02-24 16:09:33 +00:00
GrTest.cpp Add GrExternalTextureData and SkCrossContextImageData 2017-02-24 16:09:33 +00:00
GrTest.h Remove GrTestTarget 2017-01-20 16:47:34 +00:00
TestContext.cpp skpbench: add option for gpu timing 2016-10-05 08:42:03 -07:00
TestContext.h Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00