Index: src/gpu/GrInOrderDrawBuffer.h |
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h |
index 6512dccf0d702fbbdb08ac2680c83b9021b50c9d..ba5e79073e342007fa9a4337b67c06bb4f685ee5 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.h |
+++ b/src/gpu/GrInOrderDrawBuffer.h |
@@ -66,6 +66,9 @@ public: |
*/ |
void flush(); |
+ // tracking for draws |
+ virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); } |
+ |
// overrides from GrDrawTarget |
virtual bool geometryHints(int* vertexCount, |
int* indexCount) const SK_OVERRIDE; |
@@ -75,7 +78,6 @@ public: |
virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* desc) SK_OVERRIDE; |
- |
protected: |
virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; |
@@ -222,7 +224,10 @@ private: |
}; |
SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> fGeoPoolStateStack; |
+ virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; } |
+ |
bool fFlushing; |
+ uint32_t fDrawID; |
typedef GrDrawTarget INHERITED; |
}; |