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

Issue 364823009: Port suitableForGpuRasterization to SkRecord (Closed)

Created:
6 years, 5 months ago by Tom Hudson
Modified:
6 years, 4 months ago
CC:
reviews_skia.org, ernstm1
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Move the code over using the same template type approach previously used for willPlayBackBitmaps in http://skbug.com/2702. Also unifies that flag and this one into a struct so they and others can be computed together. The struct is stored const to enforce lifetime expectations. Adds a few new cases to the unit test. BUG=skia:2700 R=mtklein@google.com,reed@google.com,robertphillips@google.com Committed: https://skia.googlesource.com/skia/+/60c2a79cfa8ceebcbafc243407564dc71f5e3b4f Committed: https://skia.googlesource.com/skia/+/3a0f27916712bb3226874aeaa268e30f565880de

Patch Set 1 #

Patch Set 2 : Prototype #

Patch Set 3 : Basic unit test, avoid public API change #

Patch Set 4 : More SkPicture.h cleanup #

Total comments: 2

Patch Set 5 : Move off of SkRecord #

Patch Set 6 : More cleanup #

Patch Set 7 : Make privater in SkPicture #

Total comments: 1

Patch Set 8 : Reed review complete #

Total comments: 10

Patch Set 9 : mtklein suggestions with a twist #

Patch Set 10 : Remove obsolete code #

Total comments: 1

Patch Set 11 : Remove two type detectors #

Patch Set 12 : Rebase #

Patch Set 13 : Report error message #

Total comments: 2

Patch Set 14 : MSAA support #

Patch Set 15 : PictureTest tweaks #

Total comments: 2

Patch Set 16 : Deconstructor #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -124 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +14 lines, -1 line 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +187 lines, -9 lines 0 comments Download
M src/core/SkRecordAnalysis.h View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
M src/core/SkRecordAnalysis.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -66 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +76 lines, -5 lines 0 comments Download
M tests/RecordTest.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -33 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
tomhudson
Parking this while I'm on vacation; it's just the boilerplate, not the guts.
6 years, 5 months ago (2014-07-18 16:06:26 UTC) #1
tomhudson
Still want to cleanup the implementation a little bit, but this is a working prototype ...
6 years, 4 months ago (2014-08-18 15:51:45 UTC) #2
reed1
api -- lgtm
6 years, 4 months ago (2014-08-18 16:01:12 UTC) #3
reed1
6 years, 4 months ago (2014-08-18 16:01:36 UTC) #4
mtklein
https://codereview.chromium.org/364823009/diff/60001/src/core/SkRecord.h File src/core/SkRecord.h (right): https://codereview.chromium.org/364823009/diff/60001/src/core/SkRecord.h#newcode122 src/core/SkRecord.h:122: SkRecordAnalysis fAccelerationInfo; Let's keep this parallel to SkRecord like ...
6 years, 4 months ago (2014-08-18 16:34:58 UTC) #5
tomhudson
There are suitableForGpuRasterization() checks in PictureTest; I suppose if we move this structure off of ...
6 years, 4 months ago (2014-08-18 16:58:47 UTC) #6
tomhudson
Now appearing as struct SkPicture::Analysis. At this point I'd like to get rid of SkRecordAnalysis.{cpp,h} ...
6 years, 4 months ago (2014-08-18 17:32:28 UTC) #7
reed1
not lgtm (yet) -- why is the new type public?
6 years, 4 months ago (2014-08-18 18:38:13 UTC) #8
tomhudson
On 2014/08/18 18:38:13, reed1 wrote: > not lgtm (yet) -- why is the new type ...
6 years, 4 months ago (2014-08-18 18:41:26 UTC) #9
reed1
privateer lgtm https://codereview.chromium.org/364823009/diff/120001/tests/RecordTest.cpp File tests/RecordTest.cpp (right): https://codereview.chromium.org/364823009/diff/120001/tests/RecordTest.cpp#newcode11 tests/RecordTest.cpp:11: #include "SkDashPathEffect.h" can remove these adds...
6 years, 4 months ago (2014-08-18 18:44:04 UTC) #10
tomhudson
Mike K: your plan was cunning indeed. Good to go? Rob: I think your scope ...
6 years, 4 months ago (2014-08-18 19:01:20 UTC) #11
mtklein
https://codereview.chromium.org/364823009/diff/140001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/364823009/diff/140001/include/core/SkPicture.h#newcode306 include/core/SkPicture.h:306: }; if you're feeling super snazzy } const fAnalysis; ...
6 years, 4 months ago (2014-08-18 19:22:14 UTC) #12
tomhudson
https://codereview.chromium.org/364823009/diff/140001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/364823009/diff/140001/include/core/SkPicture.h#newcode306 include/core/SkPicture.h:306: }; On 2014/08/18 19:22:14, mtklein wrote: > if you're ...
6 years, 4 months ago (2014-08-18 21:37:00 UTC) #13
mtklein
lgtm https://codereview.chromium.org/364823009/diff/180001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/364823009/diff/180001/src/core/SkPicture.cpp#newcode139 src/core/SkPicture.cpp:139: if (effect) { I like to scope these ...
6 years, 4 months ago (2014-08-18 21:50:55 UTC) #14
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-18 22:00:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/364823009/220001
6 years, 4 months ago (2014-08-18 22:00:40 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (220001) as 60c2a79cfa8ceebcbafc243407564dc71f5e3b4f
6 years, 4 months ago (2014-08-18 22:07:18 UTC) #17
mtklein
A revert of this CL (patchset #12) has been created in https://codereview.chromium.org/470633003/ by mtklein@google.com. The ...
6 years, 4 months ago (2014-08-18 22:30:40 UTC) #18
tomhudson
> The reason for reverting is: test_gpu_veto(reporter, true) failing on many bots. Sigh - I'd ...
6 years, 4 months ago (2014-08-18 23:08:35 UTC) #19
mtklein
> However, something that doesn't seem to be hit in the unit tests is > ...
6 years, 4 months ago (2014-08-18 23:24:24 UTC) #20
robertphillips
Probably MSAA/non-MSAA would be sufficient. When MSAA is available it is tempting to say we'll ...
6 years, 4 months ago (2014-08-19 12:22:09 UTC) #21
robertphillips
test changes lgtm We usually also test out suitableForGpuRasterization changes by generating the confusion matrix ...
6 years, 4 months ago (2014-08-19 12:28:00 UTC) #22
tomhudson
Patch set 14 supports MSAA, more-or-less. I think the intended behavior is that we query ...
6 years, 4 months ago (2014-08-19 20:19:27 UTC) #23
mtklein
Still LGTM https://codereview.chromium.org/364823009/diff/280001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/364823009/diff/280001/include/core/SkPicture.h#newcode310 include/core/SkPicture.h:310: Analysis() Maybe merge these false and 0s ...
6 years, 4 months ago (2014-08-19 21:01:01 UTC) #24
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-20 12:23:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/364823009/320001
6 years, 4 months ago (2014-08-20 12:23:26 UTC) #26
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 12:29:46 UTC) #27
Message was sent while issue was closed.
Committed patchset #17 (320001) as 3a0f27916712bb3226874aeaa268e30f565880de

Powered by Google App Engine
This is Rietveld 408576698