diff options
author | 2012-08-13 17:47:59 +0000 | |
---|---|---|
committer | 2012-08-13 17:47:59 +0000 | |
commit | 9c2ea846351a29208cb4a36301ee611e7fb384ea (patch) | |
tree | cf61ae05b74705a6ae7d579e50410dd026ec780a /src/gpu/gl/GrGLRenderTarget.cpp | |
parent | 62e41903a70e0bebf875cd0fa5c94f804fad582a (diff) |
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
Diffstat (limited to 'src/gpu/gl/GrGLRenderTarget.cpp')
-rw-r--r-- | src/gpu/gl/GrGLRenderTarget.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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); } |