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

Issue 1178673007: Allow reset of the SkPictureRecorder cull rect before endRecording. (Closed)

Created:
5 years, 6 months ago by Stephen Chennney
Modified:
5 years, 5 months ago
Reviewers:
*mtklein, *reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Allow reset of the SkPictureRecorder cull rect and other parameters during endRecording. For some users of SkPictureRecorder, the cull rect is more efficiently determined while drawing is in progress, rather than when recording starts. The existing API requires the cull rect at start time, even though the information is not used for any culling purpose until the end of recording. This patch provides a means to reset the cull rect when recording ends, allowing users to update the rect based on information learned during drawing and for the new rect to be used as the culling bound. A valid bound is still required on the beginRecording call because it sizes the underlying canvas and sets the aspect ratio for any bounding box hierarchy. The bounding box factory can also be specified and parameters that control SkPicture creation. R=mtklein, reed1 BUG=skia:3919 Committed: https://skia.googlesource.com/skia/+/eeff8bb8ffdd6e77823a23bad3d23e4f15057681

Patch Set 1 #

Patch Set 2 : Switch to parameters in endRecording #

Patch Set 3 : Remove recordFlags from new method #

Total comments: 1

Patch Set 4 : Removed bbhFactory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
M include/core/SkPictureRecorder.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
Stephen Chennney
PTAL. Potential improvements: - make the aspectRatio for the BBH hierarchy reset also. - improve ...
5 years, 6 months ago (2015-06-11 20:36:46 UTC) #1
reed1
5 years, 6 months ago (2015-06-11 20:42:23 UTC) #4
mtklein
This isn't really how I'd like to leave the API here long-term, but I'm okay ...
5 years, 6 months ago (2015-06-12 12:13:00 UTC) #5
Stephen Chennney
On 2015/06/12 12:13:00, mtklein wrote: > This isn't really how I'd like to leave the ...
5 years, 6 months ago (2015-06-12 17:31:52 UTC) #6
mtklein
On 2015/06/12 17:31:52, Stephen Chenney wrote: > On 2015/06/12 12:13:00, mtklein wrote: > > This ...
5 years, 6 months ago (2015-06-12 18:47:19 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178673007/20001
5 years, 6 months ago (2015-06-12 21:16:04 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 6 months ago (2015-06-12 21:16:06 UTC) #10
Stephen Chennney
New version going through the CQ dry run now. It is nicer.
5 years, 6 months ago (2015-06-12 21:16:08 UTC) #11
commit-bot: I haz the power
Dry run: All required reviewers (with asterisk prefixes) have not yet approved this CL. No ...
5 years, 6 months ago (2015-06-13 03:16:02 UTC) #13
reed1
How do things operator if a BBHFactory was specified at the start and at the ...
5 years, 6 months ago (2015-06-15 17:28:16 UTC) #14
Stephen Chennney
On 2015/06/15 17:28:16, reed1 wrote: > How do things operator if a BBHFactory was specified ...
5 years, 6 months ago (2015-06-15 19:17:31 UTC) #15
Stephen Chennney
Where are we at on this? I think I've addressed the API concerns. To be ...
5 years, 5 months ago (2015-07-07 14:26:05 UTC) #16
reed1
Lets remove the factory/flag parameters from end(), since we only want to expose an overriding ...
5 years, 5 months ago (2015-07-07 19:05:24 UTC) #17
Stephen Chennney
On 2015/07/07 19:05:24, reed1 wrote: > Lets remove the factory/flag parameters from end(), since we ...
5 years, 5 months ago (2015-07-07 19:07:52 UTC) #18
Stephen Chennney
On 2015/07/07 19:07:52, Stephen Chenney wrote: > On 2015/07/07 19:05:24, reed1 wrote: > > Lets ...
5 years, 5 months ago (2015-07-07 19:14:24 UTC) #20
mtklein
https://codereview.chromium.org/1178673007/diff/60001/include/core/SkPictureRecorder.h File include/core/SkPictureRecorder.h (right): https://codereview.chromium.org/1178673007/diff/60001/include/core/SkPictureRecorder.h#newcode89 include/core/SkPictureRecorder.h:89: SkBBHFactory* bbhFactory = NULL); Let's kill off bbhFactory too? ...
5 years, 5 months ago (2015-07-07 19:18:16 UTC) #21
Stephen Chennney
On 2015/07/07 19:18:16, mtklein wrote: > https://codereview.chromium.org/1178673007/diff/60001/include/core/SkPictureRecorder.h > File include/core/SkPictureRecorder.h (right): > > https://codereview.chromium.org/1178673007/diff/60001/include/core/SkPictureRecorder.h#newcode89 > ...
5 years, 5 months ago (2015-07-07 19:32:14 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178673007/80001
5 years, 5 months ago (2015-07-07 19:32:17 UTC) #24
commit-bot: I haz the power
Dry run: All required reviewers (with asterisk prefixes) have not yet approved this CL. No ...
5 years, 5 months ago (2015-07-07 19:32:19 UTC) #26
mtklein
lgtm
5 years, 5 months ago (2015-07-07 19:40:15 UTC) #27
reed1
lgtm
5 years, 5 months ago (2015-07-07 19:42:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178673007/80001
5 years, 5 months ago (2015-07-07 19:43:08 UTC) #30
commit-bot: I haz the power
5 years, 5 months ago (2015-07-07 21:27:16 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://skia.googlesource.com/skia/+/eeff8bb8ffdd6e77823a23bad3d23e4f15057681

Powered by Google App Engine
This is Rietveld 408576698