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

Unified Diff: src/core/SkPicturePlayback.h

Issue 378343002: Refactor SkPicturePlayback for SkPictureReplacementPlayback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move StepIterator to be next to SkipIterTo Created 6 years, 5 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 | « no previous file | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698