diff options
author | 2011-11-07 13:29:52 +0000 | |
---|---|---|
committer | 2011-11-07 13:29:52 +0000 | |
commit | e269f210bdae0288643afaf8a579b22d3f6d5beb (patch) | |
tree | d6e312d7777405dd00ed7c9f6cfe7d107cf7d062 /src/gpu/GrGpu.h | |
parent | e826262939dac3e67cb5ce66d4b9faeb8e2538e6 (diff) |
Recommit r2611 with fix for gm
git-svn-id: http://skia.googlecode.com/svn/trunk@2614 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; |