aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-24 07:26:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-24 07:26:32 -0700
commit2302de920e5434809bd0e85b871a6e002856dfdb (patch)
tree895491a700be4a79a3da2faa95dd8f553537bdf8 /include
parent85f9269d9b05c25f3d7b9ac5435f2bf8951e7db3 (diff)
Switch new SkImageFilter internal methods over to sk_sp
Diffstat (limited to 'include')
-rw-r--r--include/core/SkDevice.h4
-rw-r--r--include/core/SkImageFilter.h18
-rw-r--r--include/effects/SkBlurImageFilter.h4
-rw-r--r--include/effects/SkColorFilterImageFilter.h4
-rw-r--r--include/effects/SkComposeImageFilter.h4
-rw-r--r--include/effects/SkDropShadowImageFilter.h4
-rw-r--r--include/effects/SkImageSource.h4
-rw-r--r--include/effects/SkMergeImageFilter.h4
-rw-r--r--include/effects/SkOffsetImageFilter.h4
-rw-r--r--include/effects/SkPaintImageFilter.h4
10 files changed, 27 insertions, 27 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 5d903fd074..55b08a762c 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -381,8 +381,8 @@ protected:
/**
* Calls through to drawSprite, processing the imagefilter.
*/
- virtual void drawBitmapAsSpriteWithImageFilter(const SkDraw&, const SkBitmap&,
- int x, int y, const SkPaint&);
+ virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&,
+ int x, int y, const SkPaint&);
private:
friend class SkCanvas;
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 025c8fd175..ab72547fed 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -150,7 +150,7 @@ public:
* TODO: Right now the imagefilters sometimes return empty result bitmaps/
* specialimages. That doesn't seem quite right.
*/
- SkSpecialImage* filterImage(SkSpecialImage* src, const Context&, SkIPoint* offset) const;
+ sk_sp<SkSpecialImage> filterImage(SkSpecialImage* src, const Context&, SkIPoint* offset) const;
enum MapDirection {
kForward_MapDirection,
@@ -264,10 +264,10 @@ public:
SkFilterQuality,
SkImageFilter* input = NULL);
- SkSpecialImage* filterInput(int index,
- SkSpecialImage* src,
- const Context&,
- SkIPoint* offset) const;
+ sk_sp<SkSpecialImage> filterInput(int index,
+ SkSpecialImage* src,
+ const Context&,
+ SkIPoint* offset) const;
#if SK_SUPPORT_GPU
// Helper function which invokes GPU filter processing on the
@@ -354,8 +354,8 @@ protected:
virtual bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&,
SkBitmap* result, SkIPoint* offset) const;
- virtual SkSpecialImage* onFilterImage(SkSpecialImage* src, const Context&,
- SkIPoint* offset) const;
+ virtual sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* src, const Context&,
+ SkIPoint* offset) const;
/**
* This function recurses into its inputs with the given rect (first
@@ -424,8 +424,8 @@ protected:
bool applyCropRectDeprecated(const Context&, Proxy* proxy, const SkBitmap& src,
SkIPoint* srcOffset, SkIRect* bounds, SkBitmap* result) const;
- SkSpecialImage* applyCropRect(const Context&, SkSpecialImage* src, SkIPoint* srcOffset,
- SkIRect* bounds) const;
+ sk_sp<SkSpecialImage> applyCropRect(const Context&, SkSpecialImage* src, SkIPoint* srcOffset,
+ SkIRect* bounds) const;
/**
* Returns true if the filter can be expressed a single-pass
diff --git a/include/effects/SkBlurImageFilter.h b/include/effects/SkBlurImageFilter.h
index 46d073efdd..682c08f294 100644
--- a/include/effects/SkBlurImageFilter.h
+++ b/include/effects/SkBlurImageFilter.h
@@ -28,8 +28,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection) const override;
private:
diff --git a/include/effects/SkColorFilterImageFilter.h b/include/effects/SkColorFilterImageFilter.h
index 910b31ae7a..90e6e4bd71 100644
--- a/include/effects/SkColorFilterImageFilter.h
+++ b/include/effects/SkColorFilterImageFilter.h
@@ -22,8 +22,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
bool onIsColorFilterNode(SkColorFilter**) const override;
bool canComputeFastBounds() const override;
diff --git a/include/effects/SkComposeImageFilter.h b/include/effects/SkComposeImageFilter.h
index 8c93b564f2..cf73a001c8 100644
--- a/include/effects/SkComposeImageFilter.h
+++ b/include/effects/SkComposeImageFilter.h
@@ -32,8 +32,8 @@ protected:
SkASSERT(inputs[0]);
SkASSERT(inputs[1]);
}
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
SkIRect onFilterBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
private:
diff --git a/include/effects/SkDropShadowImageFilter.h b/include/effects/SkDropShadowImageFilter.h
index e3620b0dfa..7f1aa33220 100644
--- a/include/effects/SkDropShadowImageFilter.h
+++ b/include/effects/SkDropShadowImageFilter.h
@@ -36,8 +36,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection) const override;
private:
diff --git a/include/effects/SkImageSource.h b/include/effects/SkImageSource.h
index 293a052f6e..ab6e0c161f 100644
--- a/include/effects/SkImageSource.h
+++ b/include/effects/SkImageSource.h
@@ -28,8 +28,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
private:
explicit SkImageSource(SkImage*);
diff --git a/include/effects/SkMergeImageFilter.h b/include/effects/SkMergeImageFilter.h
index 082473110b..3bf649d97d 100644
--- a/include/effects/SkMergeImageFilter.h
+++ b/include/effects/SkMergeImageFilter.h
@@ -35,8 +35,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
private:
SkMergeImageFilter(SkImageFilter* filters[], int count, const SkXfermode::Mode modes[],
diff --git a/include/effects/SkOffsetImageFilter.h b/include/effects/SkOffsetImageFilter.h
index 0b9ca83319..908f20b67a 100644
--- a/include/effects/SkOffsetImageFilter.h
+++ b/include/effects/SkOffsetImageFilter.h
@@ -28,8 +28,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
private:
diff --git a/include/effects/SkPaintImageFilter.h b/include/effects/SkPaintImageFilter.h
index 285d0f1686..51d375f44d 100644
--- a/include/effects/SkPaintImageFilter.h
+++ b/include/effects/SkPaintImageFilter.h
@@ -31,8 +31,8 @@ public:
protected:
void flatten(SkWriteBuffer&) const override;
- SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
private:
SkPaintImageFilter(const SkPaint& paint, const CropRect* rect);