From 9c2ea846351a29208cb4a36301ee611e7fb384ea Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 13 Aug 2012 17:47:59 +0000 Subject: Split cache-specific fields out of GrTextureDesc http://codereview.appspot.com/6448143/ git-svn-id: http://skia.googlecode.com/svn/trunk@5065 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGLRenderTarget.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gpu/gl/GrGLRenderTarget.cpp') diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp index 4193519357..16d7f1b0b2 100644 --- a/src/gpu/gl/GrGLRenderTarget.cpp +++ b/src/gpu/gl/GrGLRenderTarget.cpp @@ -28,15 +28,13 @@ void GrGLRenderTarget::init(const Desc& desc, namespace { GrTextureDesc MakeDesc(GrTextureFlags flags, int width, int height, - GrPixelConfig config, int sampleCnt, - uint64_t clientCacheID) { + GrPixelConfig config, int sampleCnt) { GrTextureDesc temp; temp.fFlags = flags; temp.fWidth = width; temp.fHeight = height; temp.fConfig = config; temp.fSampleCnt = sampleCnt; - temp.fClientCacheID = clientCacheID; return temp; } @@ -51,8 +49,7 @@ GrGLRenderTarget::GrGLRenderTarget(GrGpuGL* gpu, texture, MakeDesc(kNone_GrTextureFlags, viewport.fWidth, viewport.fHeight, - desc.fConfig, desc.fSampleCnt, - kDefault_CacheID)) { + desc.fConfig, desc.fSampleCnt)) { GrAssert(NULL != texID); GrAssert(NULL != texture); // FBO 0 can't also be a texture, right? @@ -73,8 +70,7 @@ GrGLRenderTarget::GrGLRenderTarget(GrGpuGL* gpu, NULL, MakeDesc(kNone_GrTextureFlags, viewport.fWidth, viewport.fHeight, - desc.fConfig, desc.fSampleCnt, - kDefault_CacheID)) { + desc.fConfig, desc.fSampleCnt)) { this->init(desc, viewport, NULL); } -- cgit v1.2.3