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

Issue 324293004: Remove picture pre-allocation from SkPictureRecorder (Closed)

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

Description

Remove picture pre-allocation from SkPictureRecorder This CL improves the separation of the SkPicture and SkPictureRecord classes. It delays creation of the SkPicture (in SkPictureRecorder) until recording is actually completed. To accomplish this the SkRecord-derived classes now get SkPathHeap and SkPictureContentInfo members that are absorbed by the SkPicture when it is constructed. As an ancillary change, this CL also moves the SkPictureContentInfo object from SkPicture to SkPicturePlayback. This is intended to centralize all the data in the SkPicturePlayback object. Committed: https://skia.googlesource.com/skia/+/0bdbea75ff1a6f3c313c18cab0139728967cb93e

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : Fix initializer list order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -157 lines) Patch
M include/core/SkPicture.h View 1 2 chunks +3 lines, -67 lines 0 comments Download
M include/core/SkPictureRecorder.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkBBoxHierarchyRecord.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M src/core/SkBBoxRecord.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 4 chunks +20 lines, -33 lines 0 comments Download
M src/core/SkPicturePlayback.h View 4 chunks +58 lines, -2 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 4 chunks +30 lines, -14 lines 0 comments Download
M src/core/SkPictureRecord.h View 4 chunks +27 lines, -4 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 5 chunks +12 lines, -6 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 3 chunks +14 lines, -21 lines 0 comments Download
M tests/CanvasTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertphillips
6 years, 6 months ago (2014-06-11 15:09:19 UTC) #1
reed1
rubberstamp lgtm -- deferring to mtklein
6 years, 6 months ago (2014-06-11 15:14:53 UTC) #2
mtklein
https://codereview.chromium.org/324293004/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/324293004/diff/20001/include/core/SkPicture.h#newcode289 include/core/SkPicture.h:289: SkPicture(int width, int height, SkPictureRecord& record, bool deepCopyOps); is ...
6 years, 6 months ago (2014-06-11 15:30:22 UTC) #3
mtklein
https://codereview.chromium.org/324293004/diff/20001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/324293004/diff/20001/src/core/SkPicture.cpp#newcode136 src/core/SkPicture.cpp:136: : fAccelData(NULL) GCC whined at me that fWidth and ...
6 years, 6 months ago (2014-06-11 15:31:49 UTC) #4
robertphillips
https://codereview.chromium.org/324293004/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/324293004/diff/20001/include/core/SkPicture.h#newcode289 include/core/SkPicture.h:289: SkPicture(int width, int height, SkPictureRecord& record, bool deepCopyOps); I ...
6 years, 6 months ago (2014-06-11 17:06:50 UTC) #5
mtklein
sgtm, lgtm
6 years, 6 months ago (2014-06-11 18:21:18 UTC) #6
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 6 months ago (2014-06-11 18:23:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/324293004/40001
6 years, 6 months ago (2014-06-11 18:23:57 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 18:38:01 UTC) #9
Message was sent while issue was closed.
Change committed as 0bdbea75ff1a6f3c313c18cab0139728967cb93e

Powered by Google App Engine
This is Rietveld 408576698