Fix debugging code for tracing texture creation
authorbrianosman <brianosman@google.com>
Tue, 19 Jul 2016 15:02:20 +0000 (08:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 Jul 2016 15:02:21 +0000 (08:02 -0700)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2164623002

Review-Url: https://codereview.chromium.org/2164623002

src/gpu/gl/GrGLGpu.cpp

index ae38ed8779eff4857f5ee65bcca33eccfbe4bc27..1c07291de0781331b8dc4147c0bd42faf04de6bd 100644 (file)
@@ -1695,7 +1695,7 @@ GrTexture* GrGLGpu::onCreateTexture(const GrSurfaceDesc& desc,
     tex->setCachedTexParams(initialTexParams, this->getResetTimestamp());
 #ifdef TRACE_TEXTURE_CREATION
     SkDebugf("--- new texture [%d] size=(%d %d) config=%d\n",
-             glTexDesc.fInfo.fID, desc.fWidth, desc.fHeight, desc.fConfig);
+             idDesc.fInfo.fID, desc.fWidth, desc.fHeight, desc.fConfig);
 #endif
     return tex;
 }
@@ -1729,7 +1729,7 @@ GrTexture* GrGLGpu::onCreateCompressedTexture(const GrSurfaceDesc& desc,
     tex->setCachedTexParams(initialTexParams, this->getResetTimestamp());
 #ifdef TRACE_TEXTURE_CREATION
     SkDebugf("--- new compressed texture [%d] size=(%d %d) config=%d\n",
-             glTexDesc.fInfo.fID, desc.fWidth, desc.fHeight, desc.fConfig);
+             idDesc.fInfo.fID, desc.fWidth, desc.fHeight, desc.fConfig);
 #endif
     return tex;
 }