Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Unified Diff: include/core/SkDevice.h

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 6e02137fb5b817551f7ec2d74ed1fe60a3a888d6..14e583f11a23c8058e1208c5725d263e88bea442 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -274,14 +274,14 @@ protected:
/**
* Related (but not required) to canHandleImageFilter, this method returns
- * true if the device could apply the filter to the src bitmap and return
+ * true if the device could apply the filter to the src image and return
* the result (and updates offset as needed).
* If the device does not recognize or support this filter,
* it just returns false and leaves result and offset unchanged.
*/
- virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
+ virtual bool filterImage(const SkImageFilter*, const SkImage*,
const SkImageFilter::Context&,
- SkBitmap* /*result*/, SkIPoint* /*offset*/) {
+ SkAutoTUnref<const SkImage>& /*result*/, SkIPoint* /*offset*/) {
return false;
}
@@ -371,6 +371,8 @@ private:
friend class SkDeferredDevice; // for newSurface
friend class SkNoPixelsBitmapDevice;
+ friend class SkSurface;
+ friend class SkSurface_Gpu;
friend class SkSurface_Raster;
// used to change the backend's pixels (and possibly config/rowbytes)
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698