Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: src/gpu/GrGpu.h

Issue 949953002: Add stencil buffer create tracking to GPU stats. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index eb97b4fa08922c0f7b79aa74621b35f2c0c28102..95bbc6e75009d667d088d7c373fdba91efbc0d1e 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -358,6 +358,7 @@ public:
fShaderCompilations = 0;
fTextureCreates = 0;
fTextureUploads = 0;
+ fStencilBufferCreates = 0;
}
int renderTargetBinds() const { return fRenderTargetBinds; }
@@ -368,6 +369,7 @@ public:
void incTextureCreates() { fTextureCreates++; }
int textureUploads() const { return fTextureUploads; }
void incTextureUploads() { fTextureUploads++; }
+ void incStencilBufferCreates() { fStencilBufferCreates++; }
void dump(SkString*);
private:
@@ -375,12 +377,14 @@ public:
int fShaderCompilations;
int fTextureCreates;
int fTextureUploads;
+ int fStencilBufferCreates;
#else
void dump(SkString*) {};
void incRenderTargetBinds() {}
void incShaderCompilations() {}
void incTextureCreates() {}
void incTextureUploads() {}
+ void incStencilBufferCreates() {}
#endif
};
« no previous file with comments | « src/gpu/GrClipMaskManager.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698