diff options
author | 2014-08-08 10:05:19 -0700 | |
---|---|---|
committer | 2014-08-08 10:05:20 -0700 | |
commit | f4078ad1ec42f549369ac4f639aab18d00afae95 (patch) | |
tree | 3bf5664bddbd0614d142910356ce5dd3e9bc19ba /src/core/SkRecordDraw.cpp | |
parent | bab82ed05b304504e3b5d317486e152dce107313 (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.cpp')
-rw-r--r-- | src/core/SkRecordDraw.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp index c3c767ce77..5af00b62a1 100644 --- a/src/core/SkRecordDraw.cpp +++ b/src/core/SkRecordDraw.cpp @@ -19,18 +19,6 @@ void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac namespace SkRecords { -bool Draw::skip(const PairedPushCull& r) { - if (fCanvas->quickReject(r.base->rect)) { - fIndex += r.skip; - return true; - } - return false; -} - -bool Draw::skip(const BoundedDrawPosTextH& r) { - return fCanvas->quickRejectY(r.minY, r.maxY); -} - // FIXME: SkBitmaps are stateful, so we need to copy them to play back in multiple threads. static SkBitmap shallow_copy(const SkBitmap& bitmap) { return bitmap; @@ -77,7 +65,4 @@ DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co r.xmode.get(), r.indices, r.indexCount, r.paint)); #undef DRAW -template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } -template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base); } - } // namespace SkRecords |