diff options
author | 2012-06-06 18:21:18 +0000 | |
---|---|---|
committer | 2012-06-06 18:21:18 +0000 | |
commit | 9923c2b29aafc7ebc81c929c68c6b32443c9f22b (patch) | |
tree | 68d2b0401eebbd7674dbcbea3ee222ad04006efe /src/gpu/gl/GrGpuGL.cpp | |
parent | d4340e2b35ceea8a86a17dd001e168e9e758eea7 (diff) |
Remove gpu stats tracking
Review URL: http://codereview.appspot.com/6300052/
git-svn-id: http://skia.googlecode.com/svn/trunk@4194 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index f9d4cbb569..82a65fd451 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -1002,10 +1002,6 @@ GrTexture* GrGpuGL::onCreateTexture(const GrTextureDesc& desc, const void* srcData, size_t rowBytes) { -#if GR_COLLECT_STATS - ++fStats.fTextureCreateCnt; -#endif - GrGLTexture::Desc glTexDesc; GrGLRenderTarget::Desc glRTDesc; @@ -1093,9 +1089,6 @@ GrTexture* GrGpuGL::onCreateTexture(const GrTextureDesc& desc, GrGLTexture* tex; if (renderTarget) { -#if GR_COLLECT_STATS - ++fStats.fRenderTargetCreateCnt; -#endif // unbind the texture from the texture unit before binding it to the frame buffer GL_CALL(BindTexture(GR_GL_TEXTURE_2D, 0)); @@ -1613,9 +1606,6 @@ void GrGpuGL::flushRenderTarget(const GrIRect* bound) { if (fHWBoundRenderTarget != rt) { GL_CALL(BindFramebuffer(GR_GL_FRAMEBUFFER, rt->renderFBOID())); - #if GR_COLLECT_STATS - ++fStats.fRenderTargetChngCnt; - #endif #if GR_DEBUG GrGLenum status; GL_CALL_RET(status, CheckFramebufferStatus(GR_GL_FRAMEBUFFER)); @@ -1737,9 +1727,6 @@ void GrGpuGL::onResolveRenderTarget(GrRenderTarget* target) { rt->renderFBOID())); GL_CALL(BindFramebuffer(GR_GL_DRAW_FRAMEBUFFER, rt->textureFBOID())); - #if GR_COLLECT_STATS - ++fStats.fRenderTargetChngCnt; - #endif // make sure we go through flushRenderTarget() since we've modified // the bound DRAW FBO ID. fHWBoundRenderTarget = NULL; @@ -2134,9 +2121,6 @@ void GrGpuGL::flushBoundTextureAndParams(int stage) { if (fHWBoundTextures[stage] != nextTexture) { this->setTextureUnit(stage); GL_CALL(BindTexture(GR_GL_TEXTURE_2D, nextTexture->textureID())); - #if GR_COLLECT_STATS - ++fStats.fTextureChngCnt; - #endif //GrPrintf("---- bindtexture %d\n", nextTexture->textureID()); fHWBoundTextures[stage] = nextTexture; } |