diff options
author | 2015-10-12 11:30:02 -0700 | |
---|---|---|
committer | 2015-10-12 11:30:02 -0700 | |
commit | 88d064d0e481949184305c7b1d6b282dddffac39 (patch) | |
tree | d0e264a2d1289cdfc46a5026ca45a7a57095c250 /include/core/SkDevice.h | |
parent | f028003cf4429813ae1ac6624efa51ecbb062ed3 (diff) |
add applyFilter() to SkImage
Result:
- clients can get a filtered version of an image without having to setup a temp drawing environment
- for some cases, the process is more efficient even than (deprecated) drawSprite, since there is no need to draw/copy the result
Impl:
- made Proxy virtual so we don't need to have an existing device to use it
This, in conjunction with LocalMatrixImageFilter, should allow us to simplify and optimize ApplyImageFilter() in cc/output/gl_renderer.cc
BUG=skia:
Review URL: https://codereview.chromium.org/1390913005
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r-- | include/core/SkDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 9e01e62649..c52c579424 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -372,7 +372,7 @@ private: friend class SkDraw; friend class SkDrawIter; friend class SkDeviceFilteredPaint; - friend class SkImageFilter::Proxy; + friend class SkImageFilter::DeviceProxy; friend class SkNoPixelsBitmapDevice; friend class SkSurface_Raster; |