| Index: include/core/SkImageFilter.h
|
| diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
|
| index e197664294bcd05a1e5bfa7a9ae01f63a4ac4d08..18e17febe6d5264a25239d930e05f7c6607aab60 100644
|
| --- a/include/core/SkImageFilter.h
|
| +++ b/include/core/SkImageFilter.h
|
| @@ -107,11 +107,17 @@ public:
|
| uint32_t fFlags;
|
| };
|
|
|
| + enum TileUsage {
|
| + kPossible_TileUsage, //!< the created device may be drawn tiled
|
| + kNever_TileUsage, //!< the created device will never be drawn tiled
|
| + };
|
| +
|
| class Proxy {
|
| public:
|
| virtual ~Proxy() {}
|
|
|
| - virtual SkBaseDevice* createDevice(int width, int height) = 0;
|
| + virtual SkBaseDevice* createDevice(int width, int height,
|
| + TileUsage usage = kNever_TileUsage) = 0;
|
|
|
| // Returns true if the proxy handled the filter itself. If this returns
|
| // false then the filter's code will be called.
|
| @@ -124,7 +130,8 @@ public:
|
| public:
|
| DeviceProxy(SkBaseDevice* device) : fDevice(device) {}
|
|
|
| - SkBaseDevice* createDevice(int width, int height) override;
|
| + SkBaseDevice* createDevice(int width, int height,
|
| + TileUsage usage = kNever_TileUsage) override;
|
|
|
| // Returns true if the proxy handled the filter itself. If this returns
|
| // false then the filter's code will be called.
|
|
|