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 |
}; |