|
No deduping dictionaries for matrices and regions.
There's little benefit to deduping matrices and regions: they're infrequently
used, and doubly infrequently reused. Their use-weighted byte cost is tiny.
There is some downside to deduping matrices and regions. Even when they're not
used, we prepare dictionaries for deduping them for every picture. Each of
these dictionaries costs 160 bytes, so two unused dictionaries make a big chunk
of the ~1100 bytes it takes to allocate an SkPictureRecord. (~330 come from
parent class SkCanvas, 768 from SkPictureRecord itself, here reduced to 448).
One side benefit of not deduping these guys is that the change weighs -140 lines of code.
It may go without saying, but this breaks the picture format.
Testing: out/Debug/tests && out/Debug/dm (which runs all picture modes by default)
BUG= skia:1850
Committed: http://code.google.com/p/skia/source/detail?r=13149
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+54 lines, -246 lines) |
Patch |
|
M |
include/core/SkPath.h
|
View
|
1
|
2 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
|
M |
include/core/SkPathRef.h
|
View
|
1
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
include/core/SkPicture.h
|
View
|
1
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/core/SkPath.cpp
|
View
|
1
|
2 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/core/SkPathRef.cpp
|
View
|
1
|
2 chunks |
+3 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/core/SkPicture.cpp
|
View
|
1
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
src/core/SkPictureFlat.h
|
View
|
|
3 chunks |
+5 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/core/SkPicturePlayback.h
|
View
|
|
4 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/core/SkPicturePlayback.cpp
|
View
|
|
21 chunks |
+17 lines, -92 lines |
0 comments
|
Download
|
|
M |
src/core/SkPictureRecord.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/core/SkPictureRecord.cpp
|
View
|
|
8 chunks |
+14 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurMaskFilter.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
src/effects/SkEmbossMaskFilter.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
tests/CanvasTest.cpp
|
View
|
|
2 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|