|
Adding optimization to avoid image copy in SkSurface copy on write when content is discardable
This patch also adds code to SkDeferredCanvas to trigger the optimization.
TEST=DeferredSurfaceCopy bench, Surface unit test
Committed: http://code.google.com/p/skia/source/detail?r=8797
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+73 lines, -35 lines) |
Patch |
|
M |
include/core/SkSurface.h
|
View
|
1
2
3
4
|
1 chunk |
+18 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkCanvas.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/image/SkSurface.cpp
|
View
|
1
2
3
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/image/SkSurface_Base.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/image/SkSurface_Gpu.cpp
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/image/SkSurface_Picture.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/image/SkSurface_Raster.cpp
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/utils/SkDeferredCanvas.cpp
|
View
|
1
2
3
4
|
4 chunks |
+22 lines, -7 lines |
0 comments
|
Download
|
|
M |
tests/SurfaceTest.cpp
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|