|
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
Total comments: 8
|
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
|
Total messages: 9 (0 generated)
|