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

Unified Diff: include/effects/SkImageSource.h

Issue 1812023002: Switch SkSpecialImage & SkSpecialSurface classes over to smart pointers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix build Created 4 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 | « gm/tileimagefilter.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkImageSource.h
diff --git a/include/effects/SkImageSource.h b/include/effects/SkImageSource.h
index 08469481a2015e4c1e4210bd20821943d07e27d1..084028d6cbd233dec847ebf413a8ffb8e7181a4e 100644
--- a/include/effects/SkImageSource.h
+++ b/include/effects/SkImageSource.h
@@ -14,8 +14,8 @@ class SkImage;
class SK_API SkImageSource : public SkImageFilter {
public:
- static SkImageFilter* Create(const SkImage*);
- static SkImageFilter* Create(const SkImage*,
+ static SkImageFilter* Create(SkImage*);
+ static SkImageFilter* Create(SkImage*,
const SkRect& srcRect,
const SkRect& dstRect,
SkFilterQuality);
@@ -32,15 +32,15 @@ protected:
SkIPoint* offset) const override;
private:
- explicit SkImageSource(const SkImage*);
- SkImageSource(const SkImage*,
+ explicit SkImageSource(SkImage*);
+ SkImageSource(SkImage*,
const SkRect& srcRect,
const SkRect& dstRect,
SkFilterQuality);
- SkAutoTUnref<const SkImage> fImage;
- SkRect fSrcRect, fDstRect;
- SkFilterQuality fFilterQuality;
+ sk_sp<SkImage> fImage;
+ SkRect fSrcRect, fDstRect;
+ SkFilterQuality fFilterQuality;
typedef SkImageFilter INHERITED;
};
« no previous file with comments | « gm/tileimagefilter.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698