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

Unified Diff: include/gpu/GrContext.h

Issue 553583008: Add counting of some GL calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix some indents Created 6 years, 3 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
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 4172543b5eca25fccb8d77cab7935706b3d21950..48064c1645bd452584b242b3c5cbeaa4d27778b1 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -960,6 +960,15 @@ public:
void printCacheStats() const;
#endif
+#if GR_GPU_STATS
+ struct GPUStats {
+ int fBindFrameBufferCalls;
+ int fCompileShaderCalls;
+ };
+
+ const GPUStats& gpuStats() const;
+#endif
+
private:
// Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer.
enum BufferedDraw {
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrContext.cpp » ('j') | src/gpu/GrGpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698