diff options
author | 2011-11-07 01:37:22 +0000 | |
---|---|---|
committer | 2011-11-07 01:37:22 +0000 | |
commit | 6d9adaec78f4c25c16c6f925f6c619955ae7f099 (patch) | |
tree | 78a700be287434da237e18f118270396a3abe032 /src/gpu/GrGpu.h | |
parent | 979432ba2621b617f5e85a9ff48c6b6cd1504a0d (diff) |
Add replacement APIs for createPlatformSurface: createPlatformTexture and createPlatformRenderTarget
git-svn-id: http://skia.googlecode.com/svn/trunk@2611 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 5d9cf4fd48..b0aaa185dd 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -121,6 +121,19 @@ public: GrTexture* createTexture(const GrTextureDesc& desc, const void* srcData, size_t rowBytes); + /** + * Implements GrContext::createPlatformTexture + */ + GrTexture* createPlatformTexture(const GrPlatformTextureDesc& desc); + + /** + * Implements GrContext::createPlatformTexture + */ + GrRenderTarget* createPlatformRenderTarget(const GrPlatformRenderTargetDesc& desc); + + /** + * DEPRECATED. This will be removed. + */ GrResource* createPlatformSurface(const GrPlatformSurfaceDesc& desc); /** @@ -314,6 +327,8 @@ protected: virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, const void* srcData, size_t rowBytes) = 0; + virtual GrTexture* onCreatePlatformTexture(const GrPlatformTextureDesc& desc) = 0; + virtual GrRenderTarget* onCreatePlatformRenderTarget(const GrPlatformRenderTargetDesc& desc) = 0; virtual GrResource* onCreatePlatformSurface(const GrPlatformSurfaceDesc& desc) = 0; virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, bool dynamic) = 0; |