diff options
author | mtklein <mtklein@google.com> | 2015-08-03 18:08:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-03 18:08:30 -0700 |
commit | 1d183b4cb31fd53547edad73b29ebec16e053d2a (patch) | |
tree | 5f507e90842857916a920840ed0bec65f43bad66 /src | |
parent | 48ed62b29d45e42b971aac8858da06781c93e6d7 (diff) |
Revert of SkCanvas::onDrawPicture() quick-reject (patchset #3 id:40001 of https://codereview.chromium.org/1264133003/ )
Reason for revert:
webkit_unit_tests :(
Original issue's description:
> SkCanvas::onDrawPicture() quick-reject
>
> R=reed@google.com,mtklein@google.com
>
> Committed: https://skia.googlesource.com/skia/+/48ed62b29d45e42b971aac8858da06781c93e6d7
TBR=reed@google.com,fmalita@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1273433002
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkCanvas.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 5f01bb5422..2308151b40 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -2744,19 +2744,6 @@ void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, con void SkCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) { - if (!paint || paint->canComputeFastBounds()) { - SkRect bounds = picture->cullRect(); - if (paint) { - paint->computeFastBounds(bounds, &bounds); - } - if (matrix) { - matrix->mapRect(&bounds); - } - if (this->quickReject(bounds)) { - return; - } - } - SkBaseDevice* device = this->getTopDevice(); if (device) { // Canvas has to first give the device the opportunity to render |