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

Unified Diff: src/gpu/batches/GrBatch.h

Issue 1336413006: Just an experiment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrNonAAFillRectBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrNonAAFillRectBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698