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

Unified Diff: include/effects/SkDisplacementMapEffect.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/effects/SkComposeImageFilter.h ('k') | include/effects/SkDropShadowImageFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkDisplacementMapEffect.h
diff --git a/include/effects/SkDisplacementMapEffect.h b/include/effects/SkDisplacementMapEffect.h
index b3fa8d5f00062c7b7cb49223e002e8c977f4f0a6..1b78b0117bbb9413b926f1c09f659d8e361358aa 100644
--- a/include/effects/SkDisplacementMapEffect.h
+++ b/include/effects/SkDisplacementMapEffect.h
@@ -9,7 +9,6 @@
#define SkDisplacementMapEffect_DEFINED
#include "SkImageFilter.h"
-#include "SkBitmap.h"
class SK_API SkDisplacementMapEffect : public SkImageFilter {
public:
@@ -32,9 +31,9 @@ public:
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDisplacementMapEffect)
virtual bool onFilterImage(Proxy* proxy,
- const SkBitmap& src,
+ const SkImage* src,
const Context& ctx,
- SkBitmap* dst,
+ SkAutoTUnref<const SkImage>& dst,
SkIPoint* offset) const SK_OVERRIDE;
void computeFastBounds(const SkRect& src, SkRect* dst) const SK_OVERRIDE;
@@ -43,8 +42,9 @@ public:
#if SK_SUPPORT_GPU
bool canFilterImageGPU() const SK_OVERRIDE { return true; }
- virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
- SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
+ virtual bool filterImageGPU(Proxy* proxy, const SkImage* src, const Context& ctx,
+ SkAutoTUnref<const SkImage>& result,
+ SkIPoint* offset) const SK_OVERRIDE;
#endif
SK_TO_STRING_OVERRIDE()
« no previous file with comments | « include/effects/SkComposeImageFilter.h ('k') | include/effects/SkDropShadowImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698