Revert of SkCanvas::onDrawPicture() quick-reject (patchset #3 id:40001 of https://codereview.chromium.org/1264133003/ )
Reason for revert: Seems to be breaking some blink tests. https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/75812/layout-test-results/results.html Original issue's description: > SkCanvas::onDrawPicture() quick-reject > > R=reed@google.com,mtklein@google.com > > Committed: https://skia.googlesource.com/skia/+/48ed62b29d45e42b971aac8858da06781c93e6d7 > > Committed: https://skia.googlesource.com/skia/+/d3d07245e29504dbffa0083e84ace5bab85853d4 TBR=mtklein@google.com,reed@google.com,mtklein@chromium.org,fmalita@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1301973002
This commit is contained in:
parent
3cc0dfffb7
commit
82a02c9620
@ -2774,19 +2774,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
|
||||
|
Loading…
Reference in New Issue
Block a user