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

Unified Diff: src/gpu/GrGpu.h

Issue 1333543002: Add number of draws to GrGpu stats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 08837ccde88f1465b79fd1f89a8f1670c11d8bc9..ba9e85b54f12924df4a78b85f998b3cdf7f72f6c 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -331,6 +331,7 @@ public:
fTextureCreates = 0;
fTextureUploads = 0;
fStencilAttachmentCreates = 0;
+ fNumDraws = 0;
}
int renderTargetBinds() const { return fRenderTargetBinds; }
@@ -342,6 +343,7 @@ public:
int textureUploads() const { return fTextureUploads; }
void incTextureUploads() { fTextureUploads++; }
void incStencilAttachmentCreates() { fStencilAttachmentCreates++; }
+ void incNumDraws() { fNumDraws++; }
void dump(SkString*);
private:
@@ -350,6 +352,7 @@ public:
int fTextureCreates;
int fTextureUploads;
int fStencilAttachmentCreates;
+ int fNumDraws;
#else
void dump(SkString*) {};
void incRenderTargetBinds() {}
@@ -357,6 +360,7 @@ public:
void incTextureCreates() {}
void incTextureUploads() {}
void incStencilAttachmentCreates() {}
+ void incNumDraws() {}
#endif
};
« no previous file with comments | « no previous file | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698