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

Unified Diff: include/core/SkImageFilter.h

Issue 1421493003: tunnel down texture-size-constraint to imagefilters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: re-export include/gpu to clients of core.gyp Created 5 years, 2 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
Index: include/core/SkImageFilter.h
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 64e1581373d0c6eeb0a3b9e2ed1e4ee4d0d991ea..647e1add24f137a7601fa9d7a5e1acc1e8def162 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -15,6 +15,10 @@
#include "SkRect.h"
#include "SkSurfaceProps.h"
+#if SK_SUPPORT_GPU
+#include "GrTextureProvider.h"
+#endif
+
class GrFragmentProcessor;
class GrTexture;
class SkBaseDevice;
@@ -95,6 +99,7 @@ public:
class Proxy {
public:
+ Proxy(bool needExactTextureSize = false);
virtual ~Proxy() {}
virtual SkBaseDevice* createDevice(int width, int height) = 0;
@@ -104,6 +109,17 @@ public:
virtual bool filterImage(const SkImageFilter*, const SkBitmap& src,
const SkImageFilter::Context&,
SkBitmap* result, SkIPoint* offset) = 0;
+
+#if SK_SUPPORT_GPU
+ GrTextureProvider::SizeConstraint getSizeConstraint() const {
+ return fSizeConstraint;
+ }
+#endif
+
+ private:
+#if SK_SUPPORT_GPU
+ const GrTextureProvider::SizeConstraint fSizeConstraint;
+#endif
};
class DeviceProxy : public Proxy {
« no previous file with comments | « gyp/core.gyp ('k') | include/core/SkMaskFilter.h » ('j') | include/core/SkMaskFilter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698