From: brianosman Date: Tue, 19 Jul 2016 15:02:20 +0000 (-0700) Subject: Fix debugging code for tracing texture creation X-Git-Tag: submit/tizen/20180928.044319~116^2~749 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4459f6a3381b033dc7871701a647820d8f6bec4;p=platform%2Fupstream%2FlibSkiaSharp.git Fix debugging code for tracing texture creation BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2164623002 Review-Url: https://codereview.chromium.org/2164623002 --- diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index ae38ed8779..1c07291de0 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -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; }