Index: src/core/SkRecordDraw.h |
diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h |
index 92b94c44233557799dd37554a5846184646275a7..a9557f45ea2eb309f3941d5234785c6ea930aa98 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; |