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

Unified Diff: include/core/SkImageFilter.h

Issue 185973003: Cleanup patch to move all of SkImageFilterUtils into SkImageFilter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Oh, the Rietveld suckage Created 6 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 | « gyp/public_headers.gypi ('k') | include/core/SkImageFilterUtils.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 a3e5a62ee505d062a0c4504cdebe317c45bf251c..91b98f4a8d442ec7de3ecc07d83b00b1943cfc44 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -146,6 +146,20 @@ public:
// Default impl returns union of all input bounds.
virtual void computeFastBounds(const SkRect&, SkRect*) const;
+#ifdef SK_SUPPORT_GPU
+ /**
+ * Wrap the given texture in a texture-backed SkBitmap.
+ */
+ static void WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result);
+
+ /**
+ * Recursively evaluate this filter on the GPU. If the filter has no GPU
+ * implementation, it will be processed in software and uploaded to the GPU.
+ */
+ bool getInputResultGPU(SkImageFilter::Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm,
+ SkBitmap* result, SkIPoint* offset) const;
+#endif
+
SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter)
protected:
@@ -222,6 +236,7 @@ protected:
const SkMatrix& matrix,
const SkIRect& bounds) const;
+
private:
typedef SkFlattenable INHERITED;
int fInputCount;
« no previous file with comments | « gyp/public_headers.gypi ('k') | include/core/SkImageFilterUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698