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

Unified Diff: src/gpu/GrGpu.h

Issue 1826863002: Add unit test for vertex attribute count. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: cleanup Created 4 years, 9 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/GrGpu.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 082f53f830d69bef4fa0234194093feef51ce22a..4e9b247ca3dd9596e58f117c284ab0d694eb4c42 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -407,6 +407,7 @@ public:
fTransfersToTexture = 0;
fStencilAttachmentCreates = 0;
fNumDraws = 0;
+ fNumFailedDraws = 0;
}
int renderTargetBinds() const { return fRenderTargetBinds; }
@@ -421,9 +422,11 @@ public:
void incTransfersToTexture() { fTransfersToTexture++; }
void incStencilAttachmentCreates() { fStencilAttachmentCreates++; }
void incNumDraws() { fNumDraws++; }
+ void incNumFailedDraws() { ++fNumFailedDraws; }
void dump(SkString*);
void dumpKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* values);
-
+ int numDraws() const { return fNumDraws; }
+ int numFailedDraws() const { return fNumFailedDraws; }
private:
int fRenderTargetBinds;
int fShaderCompilations;
@@ -432,6 +435,7 @@ public:
int fTransfersToTexture;
int fStencilAttachmentCreates;
int fNumDraws;
+ int fNumFailedDraws;
#else
void dump(SkString*) {}
void dumpKeyValuePairs(SkTArray<SkString>*, SkTArray<double>*) {}
@@ -442,6 +446,7 @@ public:
void incTransfersToTexture() {}
void incStencilAttachmentCreates() {}
void incNumDraws() {}
+ void incNumFailedDraws() {}
#endif
};
« no previous file with comments | « no previous file | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698