Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Issue 505263002: Update AnalysisCanvas drawRect early-exit logic to match SkCanvas.cpp again. (Closed)

Created:
6 years, 3 months ago by mtklein_C
Modified:
6 years, 3 months ago
Reviewers:
reveman, mtklein, reed1
CC:
chromium-reviews, robertphillips
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update AnalysisCanvas drawRect early-exit logic to match SkCanvas.cpp again. We're getting away without checking bounds today because we're building and checking a bounding-box hierarchy at record time; draws outside the picture bounds happen to never be recorded. This isn't a guarantee of the recording API, and indeed doesn't happen if you record without a bounding-box hierarchy. We want to lean on this lack of guarantee a bit more. To cut down on time spent recording, we may move around when we build a bounding box hierarchy. The upshot is that the SkPicture may contain commands that won't draw anything, and AnalysisCanvas might receive them. In short, the safe thing to do is quickReject just like SkCanvas does. tested: cc_unittests, unit_tests (Background: found this when debugging PicturePileImplTest.AnalyzeIsSolid* failures from http://crrev.com/504823003) BUG= Committed: https://crrev.com/ae5bc7f7a80a8d8eb2bef1fc50c2e935def19d7b Cr-Commit-Position: refs/heads/master@{#292141}

Patch Set 1 #

Patch Set 2 : put back paint.nothingToDraw() check #

Patch Set 3 : fmt #

Patch Set 4 : no, fmt for real #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M skia/ext/analysis_canvas.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
mtklein_C
mtklein@chromium.org changed reviewers: + reed@google.com, reveman@chromium.org
6 years, 3 months ago (2014-08-26 18:13:18 UTC) #1
mtklein_C
6 years, 3 months ago (2014-08-26 18:13:18 UTC) #2
reed1
sgtm
6 years, 3 months ago (2014-08-26 18:14:47 UTC) #3
reveman
lgtm
6 years, 3 months ago (2014-08-27 00:38:04 UTC) #4
mtklein
On 2014/08/27 00:38:04, reveman wrote: > lgtm Thanks!
6 years, 3 months ago (2014-08-27 00:45:15 UTC) #5
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 3 months ago (2014-08-27 00:45:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/505263002/1
6 years, 3 months ago (2014-08-27 00:46:40 UTC) #7
mtklein
FYI: I've put back the paint.nothingToDraw() check, if only so that unit_tests' AnalysisCanvasTest.SimpleDrawRect passes. Can't ...
6 years, 3 months ago (2014-08-27 01:54:30 UTC) #8
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 3 months ago (2014-08-27 01:56:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/505263002/60001
6 years, 3 months ago (2014-08-27 01:57:53 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-27 03:28:36 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 03:35:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6892)
6 years, 3 months ago (2014-08-27 03:35:26 UTC) #13
reed1
The CQ bit was checked by reed@google.com
6 years, 3 months ago (2014-08-27 13:17:29 UTC) #14
reed1
lgtm
6 years, 3 months ago (2014-08-27 13:17:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/505263002/60001
6 years, 3 months ago (2014-08-27 13:18:51 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (60001) as d304d013064aece0e3f574bcc2ba8ee2a234ac23
6 years, 3 months ago (2014-08-27 14:23:55 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:51:18 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ae5bc7f7a80a8d8eb2bef1fc50c2e935def19d7b
Cr-Commit-Position: refs/heads/master@{#292141}

Powered by Google App Engine
This is Rietveld 408576698