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

Issue 475473002: Start filling BBH in SkRecordDraw. (Closed)

Created:
6 years, 4 months ago by mtklein_C
Modified:
6 years, 4 months ago
Reviewers:
mtklein, robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Start filling BBH in SkRecordDraw. This starts with a skeleton of how to calculate bounds for ops which don't have their own bounds. For any given Save/Restore block, we'll find the union of the bounds of all the draws inside it (including other Save/Restore blocks), then say those are the bounds of all non-draws in the block, including the Save and Restore. To implement this, we keep a stack of active Save blocks. Any time we hit a non-drawing op ("control"), we'll add it to that Save block (implemented with a separate stack of indices and a count of control ops in the entry on the Save stack). Save and SaveLayer push onto the stack, and Restore pops the stack, at which point we can fill in the bounds for all the control ops in the block. BUG=skia: Committed: https://skia.googlesource.com/skia/+/828ce1f34b3471c108aee6ac2c39ddb90d0be11e

Patch Set 1 #

Patch Set 2 : remove CTM changes for now #

Total comments: 5

Patch Set 3 : comments and names #

Patch Set 4 : missed these #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -19 lines) Patch
M src/core/SkRecordDraw.cpp View 1 2 3 2 chunks +118 lines, -19 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mtklein
6 years, 4 months ago (2014-08-13 18:22:54 UTC) #1
robertphillips
lgtm modulo documentation requests https://codereview.chromium.org/475473002/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/475473002/diff/20001/src/core/SkRecordDraw.cpp#newcode97 src/core/SkRecordDraw.cpp:97: // This is an SkRecord ...
6 years, 4 months ago (2014-08-13 18:53:47 UTC) #2
mtklein
On 2014/08/13 18:53:47, robertphillips wrote: > lgtm modulo documentation requests > > https://codereview.chromium.org/475473002/diff/20001/src/core/SkRecordDraw.cpp > File ...
6 years, 4 months ago (2014-08-13 19:44:35 UTC) #3
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 4 months ago (2014-08-13 19:45:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/475473002/40001
6 years, 4 months ago (2014-08-13 19:45:54 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86_64-Release-Trybot on tryserver.skia ...
6 years, 4 months ago (2014-08-13 19:48:54 UTC) #6
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 4 months ago (2014-08-13 19:50:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/475473002/60001
6 years, 4 months ago (2014-08-13 19:50:14 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 19:58:49 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (60001) as 828ce1f34b3471c108aee6ac2c39ddb90d0be11e

Powered by Google App Engine
This is Rietveld 408576698