aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecordDraw.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-08 10:05:19 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-08 10:05:20 -0700
commitf4078ad1ec42f549369ac4f639aab18d00afae95 (patch)
tree3bf5664bddbd0614d142910356ce5dd3e9bc19ba /src/core/SkRecordDraw.h
parentbab82ed05b304504e3b5d317486e152dce107313 (diff)
SkRecord: Strip out cull-skipping and y-only drawPosTextH skipping.
These optimizations are outclassed by a general bounding-box hierarchy, and are just going to make plugging that into SkRecordDraw more complicated. BUG=skia: R=robertphillips@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/452983002
Diffstat (limited to 'src/core/SkRecordDraw.h')
-rw-r--r--src/core/SkRecordDraw.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h
index 92b94c4423..a9557f45ea 100644
--- a/src/core/SkRecordDraw.h
+++ b/src/core/SkRecordDraw.h
@@ -27,25 +27,13 @@ public:
void next() { ++fIndex; }
template <typename T> void operator()(const T& r) {
- if (!this->skip(r)) {
- this->draw(r);
- }
+ this->draw(r);
}
private:
// No base case, so we'll be compile-time checked that we implement all possibilities.
template <typename T> void draw(const T&);
- // skip() should return true if we can skip this command, false if not.
- // It may update fIndex directly to skip more than just this one command.
-
- // Mostly we just blindly call fCanvas and let it handle quick rejects itself.
- template <typename T> bool skip(const T&) { return false; }
-
- // We add our own quick rejects for commands added by optimizations.
- bool skip(const PairedPushCull&);
- bool skip(const BoundedDrawPosTextH&);
-
const SkMatrix fInitialCTM;
SkCanvas* fCanvas;
unsigned fIndex;