|
Fix recursive GPU processing for ImageFilters. Plumb through the SkImageFilter::Proxy parameter to the GPU recursion path. Extract DeviceImageFilterProxy from SkCanvas.cpp into its own .h, and rename it.
Background: when a filter which implements onFilterImageGPU() calls a filter which doesn't, it passes a NULL Proxy. This means that we switch to software rasterization for that filter, and never go back. The fix is to construct an SkDeviceImageFilterProxy from the SkGpuDevice, and pass that into onFilterImageGPU().
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+74 lines, -55 lines) |
Patch |
|
M |
include/core/SkDevice.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkImageFilter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkBlendImageFilter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkBlurImageFilter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkMorphologyImageFilter.h
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkSingleInputImageFilter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/core/SkCanvas.cpp
|
View
|
|
4 chunks |
+3 lines, -25 lines |
0 comments
|
Download
|
|
A |
src/core/SkDeviceImageFilterProxy.h
|
View
|
1
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkBlendImageFilter.cpp
|
View
|
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurImageFilter.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
|
src/effects/SkMorphologyImageFilter.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/effects/SkSingleInputImageFilter.cpp
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/gpu/SkGpuDevice.cpp
|
View
|
1
|
6 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
Total messages: 5
|