diff options
author | Mike Reed <reed@google.com> | 2017-11-10 14:35:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-10 19:59:47 +0000 |
commit | 48723156c597ec4d7be8e0648548ff27ef6c4e02 (patch) | |
tree | 4211a77b52a609b65b8f3e51f57ad49a916c7d68 /include/effects | |
parent | 66498bc41604fd1c9c43580c74a542813b97b549 (diff) |
remove legacy code for resolution
Bug: skia:
Change-Id: I6909325d4ee51140ec0edb47682de18617c23cc7
Reviewed-on: https://skia-review.googlesource.com/70100
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkPictureImageFilter.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/include/effects/SkPictureImageFilter.h b/include/effects/SkPictureImageFilter.h index 76e7b63e3e..25ccaf508b 100644 --- a/include/effects/SkPictureImageFilter.h +++ b/include/effects/SkPictureImageFilter.h @@ -28,11 +28,6 @@ public: SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter) protected: - enum PictureResolution { - kDeviceSpace_PictureResolution, - kLocalSpace_PictureResolution - }; - /* Constructs an SkPictureImageFilter object from an SkReadBuffer. * Note: If the SkPictureImageFilter object construction requires bitmap * decoding, the decoder must be set on the SkReadBuffer parameter by calling @@ -46,21 +41,10 @@ protected: private: explicit SkPictureImageFilter(sk_sp<SkPicture> picture); - SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, - PictureResolution, SkFilterQuality, sk_sp<SkColorSpace>); - - void drawPictureAtDeviceResolution(SkCanvas* canvas, - const SkIRect& deviceBounds, - const Context&) const; - void drawPictureAtLocalResolution(SkSpecialImage* source, - SkCanvas*, - const SkIRect& deviceBounds, - const Context&) const; + SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, sk_sp<SkColorSpace>); - sk_sp<SkPicture> fPicture; - SkRect fCropRect; - PictureResolution fPictureResolution; - SkFilterQuality fFilterQuality; + sk_sp<SkPicture> fPicture; + SkRect fCropRect; // Should never be set by a public constructor. This is only used when onMakeColorSpace() // forces a deferred color space xform. |