Index: src/gpu/batches/GrBatch.h |
diff --git a/src/gpu/batches/GrBatch.h b/src/gpu/batches/GrBatch.h |
index c5fc80c5d50dfbd622dfb69e3eb9adfbcd3c31f9..fe8a6ec90d599a64ef15dbe53821ab7811204e63 100644 |
--- a/src/gpu/batches/GrBatch.h |
+++ b/src/gpu/batches/GrBatch.h |
@@ -14,6 +14,8 @@ |
#include "SkRect.h" |
#include "SkString.h" |
+#include "draws/GrDraw.h" |
+ |
class GrCaps; |
class GrBatchFlushState; |
@@ -109,6 +111,10 @@ public: |
/** Used for spewing information about batches when debugging. */ |
virtual SkString dumpInfo() const = 0; |
+ // TODO put on stack |
+ void setDrawSnap(const GrDrawSnap* snap) const { fSnap.reset(snap); } |
+ const GrDrawSnap* drawSnap() const { return fSnap.get(); } |
+ |
protected: |
// NOTE, compute some bounds, even if extremely conservative. Do *NOT* setLargest on the bounds |
// rect because we outset it for dst copy textures |
@@ -150,6 +156,11 @@ private: |
const uint32_t fUniqueID; |
static int32_t gCurrBatchUniqueID; |
#endif |
+ |
+ |
+ // TODO put this on the stack, also does it belong here |
+ mutable SkAutoTUnref<const GrDrawSnap> fSnap; |
+ |
static int32_t gCurrBatchClassID; |
typedef GrNonAtomicRef INHERITED; |
}; |