|
Integrating SkSurface with SkDeferredCanvas
* Adding SkSurface_Gpu into the build.
* Adding overwite optimizations to surface copyOnWrite
* Changed general behavior of SkSurface_Gpu::onCopyOnWrite to assign the
new texture to the Surface, and let the Image hold on to the old one.
This is consistent with the behavior of SkSurface_Raster, and is important
in case where the resources locked by the SkImage are referenced externally
e.g. by a compositor.
* Removed setTexture API from SkImage_Gpu
* Added new SkDeferredCanvas constructor that takes an SkSurface
* Unit tests for SkDeferredCanvas wrapping an SkSurface (raster & gpu)
Total comments: 4
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+207 lines, -88 lines) |
Patch |
 |
M |
gyp/core.gypi
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gyp/gpu.gypi
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
include/core/SkCanvas.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
include/core/SkSurface.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
include/utils/SkDeferredCanvas.h
|
View
|
1
|
3 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/core/SkCanvas.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/image/SkImagePriv.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/image/SkImage_Gpu.cpp
|
View
|
|
3 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/image/SkSurface.cpp
|
View
|
1
2
3
|
2 chunks |
+8 lines, -10 lines |
1 comment
|
Download
|
 |
M |
src/image/SkSurface_Base.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/image/SkSurface_Gpu.cpp
|
View
|
1
2
3
|
2 chunks |
+15 lines, -20 lines |
0 comments
|
Download
|
 |
M |
src/image/SkSurface_Picture.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/image/SkSurface_Raster.cpp
|
View
|
1
2
3
|
2 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/utils/SkDeferredCanvas.cpp
|
View
|
1
2
|
11 chunks |
+70 lines, -18 lines |
0 comments
|
Download
|
 |
M |
tests/DeferredCanvasTest.cpp
|
View
|
1
2
|
3 chunks |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/TestClassDef.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|