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

Unified Diff: include/core/SkImageFilter.h

Issue 1695823002: Get OffsetImageFilter really working with SkSpecialImages (Closed) Base URL: https://skia.googlesource.com/skia.git@use-special
Patch Set: Fix bug Created 4 years, 10 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 | « no previous file | include/effects/SkOffsetImageFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageFilter.h
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 4f4d11d0165fdf204477a3e3c16c9dd577bfac3c..162d5030716bc0e3860b5ee92bd1d89650c7eb24 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -151,6 +151,8 @@ public:
bool filterImageDeprecated(Proxy*, const SkBitmap& src, const Context&,
SkBitmap* result, SkIPoint* offset) const;
+ SkSpecialImage* filterImage(SkSpecialImage* src, const Context&, SkIPoint* offset) const;
+
enum MapDirection {
kForward_MapDirection,
kReverse_MapDirection
@@ -263,6 +265,11 @@ public:
SkFilterQuality,
SkImageFilter* input = NULL);
+ SkSpecialImage* filterInput(int index,
+ SkSpecialImage* src,
+ const Context&,
+ SkIPoint* offset) const;
+
#if SK_SUPPORT_GPU
// Helper function which invokes GPU filter processing on the
// input at the specified "index". If the input is null, it leaves
@@ -348,6 +355,9 @@ 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;
+
/**
* This function recurses into its inputs with the given clip rect (first
* argument), calls filterBounds() with the given map direction on each,
@@ -417,6 +427,9 @@ 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;
+
/**
* Returns true if the filter can be expressed a single-pass
* GrProcessor, used to process this filter on the GPU, or false if
« no previous file with comments | « no previous file | include/effects/SkOffsetImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698