Index: src/core/SkPicturePlayback.h |
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h |
index 4248e2de5c4db2a2c14312b6035fc0e6f3e3abf3..a785bd0501d6253af284515c75226b0f73c1e141 100644 |
--- a/src/core/SkPicturePlayback.h |
+++ b/src/core/SkPicturePlayback.h |
@@ -9,6 +9,7 @@ |
#define SkPicturePlayback_DEFINED |
#include "SkPictureFlat.h" // for DrawType |
+#include "SkPictureStateTree.h" |
class SkBitmap; |
class SkCanvas; |
@@ -74,11 +75,11 @@ public: |
SkTDArray<ReplacementInfo> fReplacements; |
}; |
- // Replace all the draw ops in the replacement ranges in 'replacements' with |
- // the associated drawBitmap call |
- // Draw replacing cannot be enabled at the same time as draw limiting |
- void setReplacements(PlaybackReplacements* replacements) { |
- fReplacements = replacements; |
+ // Replace all the draw ops in the replacement ranges in 'replacements' with |
+ // the associated drawBitmap call |
+ // Draw replacing cannot be enabled at the same time as draw limiting |
+ void setReplacements(PlaybackReplacements* replacements) { |
+ fReplacements = replacements; |
} |
protected: |
@@ -96,6 +97,18 @@ protected: |
SkCanvas* canvas, |
const SkMatrix& initialMatrix); |
+ const SkPicture::OperationList* getActiveOps(const SkCanvas* canvas); |
+ bool initIterator(SkPictureStateTree::Iterator* iter, |
+ SkCanvas* canvas, |
+ const SkPicture::OperationList *activeOpsList); |
+ static void StepIterator(SkPictureStateTree::Iterator* iter, SkReader32* reader); |
+ static void SkipIterTo(SkPictureStateTree::Iterator* iter, |
+ SkReader32* reader, uint32_t skipTo); |
+ bool replaceOps(SkPictureStateTree::Iterator* iter, |
+ SkReader32* reader, |
+ SkCanvas* canvas, |
+ const SkMatrix& initialMatrix); |
+ |
static DrawType ReadOpAndSize(SkReader32* reader, uint32_t* size); |
class AutoResetOpID { |