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

Issue 195793010: Add a means of extracting active operations from SkPicture (Closed)

Created:
6 years, 9 months ago by robertphillips
Modified:
6 years, 9 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add a means of extracting active operations from SkPicture For the "pull forward" task I will be comparing the two cases: analyze the whole skp and use the BBH information analyze only the active portion of the skp In the first case we need a way to get the BBH information out of the picture in order to extract the relevant portions of the whole-skp analysis. This adds caching of the active ops so that work isn't duplicated between when the optimization path queries for that information and when the usual draw path queries for it. Committed: http://code.google.com/p/skia/source/detail?r=13836 Committed: http://code.google.com/p/skia/source/detail?r=13853

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : mark new SkPicture entry point as experimental #

Patch Set 4 : Add EXPERIMENTAL prefix to the new entry point #

Patch Set 5 : Add EXPERIMENTAL prefix to the new entry point #

Total comments: 4

Patch Set 6 : address code review comments #

Patch Set 7 : cleanup #

Patch Set 8 : more clean up #

Total comments: 5

Patch Set 9 : hide the new SkPicture class & entry point & make SkGpuDevice a friend #

Patch Set 10 : Added virtual dtor #

Patch Set 11 : Fix bug & add unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -20 lines) Patch
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M src/core/SkPicturePlayback.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +62 lines, -16 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +51 lines, -0 lines 0 comments Download
M tools/bench_record.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
robertphillips
6 years, 9 months ago (2014-03-12 17:28:09 UTC) #1
robertphillips
ping
6 years, 9 months ago (2014-03-13 12:45:19 UTC) #2
bsalomon
It might help me a bit to know how this will be called. https://codereview.chromium.org/195793010/diff/70001/src/core/SkPicturePlayback.cpp File ...
6 years, 9 months ago (2014-03-13 17:59:33 UTC) #3
robertphillips
Making up entry points, this will ultimately used something like: bool SkGpuDevice::drawPicture(cosnt SkPicture& picture) { ...
6 years, 9 months ago (2014-03-14 17:59:34 UTC) #4
reed1
https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h#newcode153 include/core/SkPicture.h:153: class OperationList : public SkNoncopyable { does this class ...
6 years, 9 months ago (2014-03-14 18:28:32 UTC) #5
robertphillips
https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h#newcode153 include/core/SkPicture.h:153: class OperationList : public SkNoncopyable { SkPicturePlayback provides the ...
6 years, 9 months ago (2014-03-14 18:36:07 UTC) #6
robertphillips
https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/195793010/diff/110002/include/core/SkPicture.h#newcode153 include/core/SkPicture.h:153: class OperationList : public SkNoncopyable { On 2014/03/14 18:28:32, ...
6 years, 9 months ago (2014-03-14 19:23:23 UTC) #7
robertphillips
ping
6 years, 9 months ago (2014-03-17 14:16:51 UTC) #8
reed1
lgtm
6 years, 9 months ago (2014-03-17 14:19:21 UTC) #9
bsalomon
On 2014/03/17 14:19:21, reed1 wrote: > lgtm lgtm
6 years, 9 months ago (2014-03-17 14:29:36 UTC) #10
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-17 14:34:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/195793010/140001
6 years, 9 months ago (2014-03-17 14:34:27 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 14:34:35 UTC) #13
commit-bot: I haz the power
Failed to apply patch for src/core/SkPicturePlayback.cpp: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-17 14:34:35 UTC) #14
robertphillips
committed as r13831
6 years, 9 months ago (2014-03-17 14:56:37 UTC) #15
robertphillips
This was reverted in r13832 due to Mac compilation issues.
6 years, 9 months ago (2014-03-17 15:10:56 UTC) #16
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-17 17:36:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/195793010/160001
6 years, 9 months ago (2014-03-17 17:36:35 UTC) #18
commit-bot: I haz the power
Change committed as 13836
6 years, 9 months ago (2014-03-17 18:12:01 UTC) #19
robertphillips
This was reverted (again) in r13850 (Revert of r13836 due to Chromium cc_unittests failures - ...
6 years, 9 months ago (2014-03-18 16:23:46 UTC) #20
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-18 16:40:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/195793010/180001
6 years, 9 months ago (2014-03-18 16:40:15 UTC) #22
commit-bot: I haz the power
Change committed as 13853
6 years, 9 months ago (2014-03-18 17:45:55 UTC) #23
tomhudson
So what are "active" operations?
6 years, 9 months ago (2014-03-19 10:22:01 UTC) #24
robertphillips
6 years, 9 months ago (2014-03-19 11:57:11 UTC) #25
Message was sent while issue was closed.
The operations needed to render a given rectangle. Basically this gives
SkGpuDevice access to the BBH results so the required textures can be preloaded
into VRAM.

Powered by Google App Engine
This is Rietveld 408576698