From e269f210bdae0288643afaf8a579b22d3f6d5beb Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 7 Nov 2011 13:29:52 +0000 Subject: Recommit r2611 with fix for gm git-svn-id: http://skia.googlecode.com/svn/trunk@2614 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrGpu.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gpu/GrGpu.h') 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; -- cgit v1.2.3