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

Issue 698643002: Expose FillBounds to allow GrPictureUtils::CollectLayers to be layered on top of it (Closed)

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

Description

Expose FillBounds to allow GrPictureUtils::CollectLayers to be layered on top of it

Patch Set 1 #

Patch Set 2 : Expose SkRecods::FillBounds in SkRecordDraw.h #

Patch Set 3 : Remove dead comment #

Total comments: 2

Patch Set 4 : Layer CollectLayers on top of FillBounds #

Total comments: 11

Patch Set 5 : Address code review comments #

Patch Set 6 : Possible layering fix #

Total comments: 8

Patch Set 7 : Update to ToT #

Patch Set 8 : Compose rather than inherit #

Total comments: 2

Patch Set 9 : Remove bogus INHERITED #

Patch Set 10 : Whitespace change #

Patch Set 11 : Fix unit test #

Patch Set 12 : Move most everything to the header #

Patch Set 13 : Fix Windows conversion complaints #

Patch Set 14 : Fix Windows conversion complaints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -834 lines) Patch
M include/core/SkPicture.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +273 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +166 lines, -395 lines 0 comments Download
M src/gpu/GrPictureUtils.cpp View 1 2 3 4 5 6 7 8 8 chunks +32 lines, -436 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (11 generated)
robertphillips
6 years, 1 month ago (2014-11-02 20:24:18 UTC) #2
mtklein
https://codereview.chromium.org/698643002/diff/40001/src/core/SkRecordDraw.h File src/core/SkRecordDraw.h (right): https://codereview.chromium.org/698643002/diff/40001/src/core/SkRecordDraw.h#newcode94 src/core/SkRecordDraw.h:94: FillBounds(const SkRecord& record, SkBBoxHierarchy* bbh); Given that we do ...
6 years, 1 month ago (2014-11-03 14:55:21 UTC) #3
robertphillips
https://codereview.chromium.org/698643002/diff/40001/src/core/SkRecordDraw.h File src/core/SkRecordDraw.h (right): https://codereview.chromium.org/698643002/diff/40001/src/core/SkRecordDraw.h#newcode94 src/core/SkRecordDraw.h:94: FillBounds(const SkRecord& record, SkBBoxHierarchy* bbh); I guess we could ...
6 years, 1 month ago (2014-11-03 15:14:17 UTC) #4
robertphillips
PTAL. This isn't quite the end game but it shows the code duplication this change ...
6 years, 1 month ago (2014-11-03 15:32:51 UTC) #5
robertphillips
Also, if/when https://codereview.chromium.org/696763002/ lands, CollectLayers::SaveLayerInfo will no longer require the fClipBound member.
6 years, 1 month ago (2014-11-03 15:36:39 UTC) #6
robertphillips
https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.h File src/core/SkRecordDraw.h (right): https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.h#newcode110 src/core/SkRecordDraw.h:110: Bounds adjustAndMap(SkRect rect, const SkPaint* paint) const; getBound is ...
6 years, 1 month ago (2014-11-03 15:38:57 UTC) #7
mtklein
Thanks, that helped. https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.cpp#newcode150 src/core/SkRecordDraw.cpp:150: if (bbh) { Is this an ...
6 years, 1 month ago (2014-11-03 15:56:47 UTC) #8
robertphillips
https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/698643002/diff/60001/src/core/SkRecordDraw.cpp#newcode150 src/core/SkRecordDraw.cpp:150: if (bbh) { On 2014/11/03 15:56:46, mtklein wrote: > ...
6 years, 1 month ago (2014-11-03 16:49:19 UTC) #9
robertphillips
PTAL. CRTP didn't seem precisely correct since we want FillRecords to do everything it usually ...
6 years, 1 month ago (2014-11-03 19:09:55 UTC) #10
mtklein
https://codereview.chromium.org/698643002/diff/100001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/698643002/diff/100001/include/core/SkPicture.h#newcode284 include/core/SkPicture.h:284: friend class SkRecords::CollectLayers; // access to fRecord No need ...
6 years, 1 month ago (2014-11-03 19:46:02 UTC) #11
robertphillips
https://codereview.chromium.org/698643002/diff/100001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/698643002/diff/100001/include/core/SkPicture.h#newcode284 include/core/SkPicture.h:284: friend class SkRecords::CollectLayers; // access to fRecord On 2014/11/03 ...
6 years, 1 month ago (2014-11-06 16:50:33 UTC) #13
mtklein
lgtm https://codereview.chromium.org/698643002/diff/160001/src/gpu/GrPictureUtils.cpp File src/gpu/GrPictureUtils.cpp (right): https://codereview.chromium.org/698643002/diff/160001/src/gpu/GrPictureUtils.cpp#newcode174 src/gpu/GrPictureUtils.cpp:174: typedef FillBounds INHERITED; Remove?
6 years, 1 month ago (2014-11-06 17:50:29 UTC) #14
robertphillips
https://codereview.chromium.org/698643002/diff/160001/src/gpu/GrPictureUtils.cpp File src/gpu/GrPictureUtils.cpp (right): https://codereview.chromium.org/698643002/diff/160001/src/gpu/GrPictureUtils.cpp#newcode174 src/gpu/GrPictureUtils.cpp:174: typedef FillBounds INHERITED; On 2014/11/06 17:50:29, mtklein wrote: > ...
6 years, 1 month ago (2014-11-06 18:05:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/698643002/220001
6 years, 1 month ago (2014-11-07 13:07:29 UTC) #17
commit-bot: I haz the power
Presubmit check for 698643002-220001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 1 month ago (2014-11-07 13:07:44 UTC) #19
robertphillips
Adding Mike & Brian for API review
6 years, 1 month ago (2014-11-07 13:11:03 UTC) #21
mtklein
On 2014/11/07 13:11:03, robertphillips wrote: > Adding Mike & Brian for API review (There is ...
6 years, 1 month ago (2014-11-07 13:17:24 UTC) #22
bsalomon
On 2014/11/07 13:17:24, mtklein wrote: > On 2014/11/07 13:11:03, robertphillips wrote: > > Adding Mike ...
6 years, 1 month ago (2014-11-07 14:17:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/698643002/220001
6 years, 1 month ago (2014-11-07 14:18:55 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot/builds/483)
6 years, 1 month ago (2014-11-07 14:21:21 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/698643002/240001
6 years, 1 month ago (2014-11-07 15:52:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/651)
6 years, 1 month ago (2014-11-07 15:56:49 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/698643002/280001
6 years, 1 month ago (2014-11-07 17:26:36 UTC) #33
robertphillips
Hey Mike - could you PTAL? Specifically, can you think of anything better than moving ...
6 years, 1 month ago (2014-11-07 18:23:15 UTC) #35
mtklein
On 2014/11/07 18:23:15, robertphillips wrote: > Hey Mike - could you PTAL? Specifically, can you ...
6 years, 1 month ago (2014-11-07 18:44:31 UTC) #36
robertphillips
6 years, 1 month ago (2014-11-12 14:47:48 UTC) #37
Message was sent while issue was closed.
This has been abandoned in favor of:

Move SkRecordComputeLayers and CollectLayers into SkRecordDraw.cpp -
https://codereview.chromium.org/716913003/

Powered by Google App Engine
This is Rietveld 408576698