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

Issue 377623002: Split SkPicturePlayback out of SkPictureData (Closed)

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

Description

Split SkPicturePlayback out of SkPictureData This splits the playback functionality out of SkPictureData. The old SkPictureData::draw method is pulled out along with its supporting functions as verbatim as possible. Some follow on CLs will be required to: re-enable profiling in the debugger (and remove the vestiges of SkTimedPicture) re-enable display of command offsets in the picture (this should probably wait until we've switched to SkRecord though) Clean up CachedOperationList (maybe fuse with SkPicture::OperationList) Split SkPicturePlayback into a base class and two derived classes Implement parallel version of GatherGPUInfo for SkRecord Landing this is blocked on removing Android's use of the abortPlayback entry point. Committed: https://skia.googlesource.com/skia/+/ce4dd3de38cd7c29bf5b9d8a8efb55c08ec9be47

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 6

Patch Set 3 : Readd files to core.gypi #

Patch Set 4 : Address code review comments #

Total comments: 1

Patch Set 5 : Add virtual dtor for SkPicturePlayback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+899 lines, -958 lines) Patch
M debugger/QT/SkDebuggerGUI.h View 1 chunk +1 line, -1 line 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 7 chunks +17 lines, -19 lines 0 comments Download
M gyp/core.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 4 chunks +2 lines, -22 lines 0 comments Download
M include/utils/SkPictureUtils.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPicture.cpp View 1 4 chunks +5 lines, -27 lines 0 comments Download
M src/core/SkPictureData.h View 1 2 3 9 chunks +12 lines, -152 lines 0 comments Download
M src/core/SkPictureData.cpp View 1 2 3 7 chunks +14 lines, -673 lines 0 comments Download
A src/core/SkPicturePlayback.h View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download
A src/core/SkPicturePlayback.cpp View 1 2 3 1 chunk +648 lines, -0 lines 0 comments Download
M src/gpu/GrPictureUtils.cpp View 1 2 3 7 chunks +31 lines, -35 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 7 chunks +14 lines, -12 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/CopyTilesRenderer.h View 1 chunk +3 lines, -1 line 0 comments Download
M tools/CopyTilesRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/PictureRenderer.h View 5 chunks +17 lines, -8 lines 0 comments Download
M tools/PictureRenderer.cpp View 4 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
robertphillips
6 years, 5 months ago (2014-07-07 19:21:17 UTC) #1
mtklein
Just nits https://codereview.chromium.org/377623002/diff/20001/src/core/SkPictureData.cpp File src/core/SkPictureData.cpp (right): https://codereview.chromium.org/377623002/diff/20001/src/core/SkPictureData.cpp#newcode708 src/core/SkPictureData.cpp:708: CachedOperationList* activeOps = SkNEW(CachedOperationList); Given that these ...
6 years, 5 months ago (2014-07-07 19:32:08 UTC) #2
reed1
api lgtm
6 years, 5 months ago (2014-07-07 19:43:01 UTC) #3
robertphillips
https://codereview.chromium.org/377623002/diff/20001/src/core/SkPictureData.cpp File src/core/SkPictureData.cpp (right): https://codereview.chromium.org/377623002/diff/20001/src/core/SkPictureData.cpp#newcode708 src/core/SkPictureData.cpp:708: CachedOperationList* activeOps = SkNEW(CachedOperationList); On 2014/07/07 19:32:08, mtklein wrote: ...
6 years, 5 months ago (2014-07-07 19:55:55 UTC) #4
mtklein
lgtm https://codereview.chromium.org/377623002/diff/10018/src/gpu/GrPictureUtils.cpp File src/gpu/GrPictureUtils.cpp (right): https://codereview.chromium.org/377623002/diff/10018/src/gpu/GrPictureUtils.cpp#newcode247 src/gpu/GrPictureUtils.cpp:247: // SkPicture::draw. OOOH. Thanks, this helped a lot.
6 years, 5 months ago (2014-07-07 19:58:30 UTC) #5
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 5 months ago (2014-07-07 20:22:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/377623002/10018
6 years, 5 months ago (2014-07-07 20:23:37 UTC) #7
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 5 months ago (2014-07-07 20:34:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/377623002/70001
6 years, 5 months ago (2014-07-07 20:34:13 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-07 20:46:44 UTC) #10
Message was sent while issue was closed.
Change committed as ce4dd3de38cd7c29bf5b9d8a8efb55c08ec9be47

Powered by Google App Engine
This is Rietveld 408576698