diff options
author | robertphillips <robertphillips@google.com> | 2016-04-20 11:48:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-20 11:48:36 -0700 |
commit | 3e302275b324172c845627cbd00cee8a06571baf (patch) | |
tree | 51b7ab49a3e044145d8818051ad019432a820654 /src/core/SkSpecialImage.h | |
parent | 9ca06c4b00bfb9bb1a7f352efd264185e5a95fbc (diff) |
Begin removing deprecated (and now, unused) ImageFilter code paths
This CL focuses on removing the Proxy objects but takes some other stuff with it.
BUG=skia:4965
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1896383003
Review URL: https://codereview.chromium.org/1896383003
Diffstat (limited to 'src/core/SkSpecialImage.h')
-rw-r--r-- | src/core/SkSpecialImage.h | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/src/core/SkSpecialImage.h b/src/core/SkSpecialImage.h index 2aa5bc6854..aec344348c 100644 --- a/src/core/SkSpecialImage.h +++ b/src/core/SkSpecialImage.h @@ -63,29 +63,25 @@ public: * transformation is required, the returned image may be the same as this special image. * If this special image is from a different GrContext, this will fail. */ - sk_sp<SkSpecialImage> makeTextureImage(SkImageFilter::Proxy*, GrContext*); + sk_sp<SkSpecialImage> makeTextureImage(GrContext*); /** * Draw this SpecialImage into the canvas. */ void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const; - static sk_sp<SkSpecialImage> MakeFromImage(SkImageFilter::Proxy*, - const SkIRect& subset, + static sk_sp<SkSpecialImage> MakeFromImage(const SkIRect& subset, sk_sp<SkImage>, const SkSurfaceProps* = nullptr); - static sk_sp<SkSpecialImage> MakeFromRaster(SkImageFilter::Proxy*, - const SkIRect& subset, + static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset, const SkBitmap&, const SkSurfaceProps* = nullptr); - static sk_sp<SkSpecialImage> MakeFromGpu(SkImageFilter::Proxy*, - const SkIRect& subset, + static sk_sp<SkSpecialImage> MakeFromGpu(const SkIRect& subset, uint32_t uniqueID, GrTexture*, const SkSurfaceProps* = nullptr, SkAlphaType at = kPremul_SkAlphaType); - static sk_sp<SkSpecialImage> MakeFromPixmap(SkImageFilter::Proxy*, - const SkIRect& subset, + static sk_sp<SkSpecialImage> MakeFromPixmap(const SkIRect& subset, const SkPixmap&, RasterReleaseProc, ReleaseContext, @@ -117,9 +113,7 @@ public: // These three internal methods will go away (see skbug.com/4965) bool internal_getBM(SkBitmap* result); - static sk_sp<SkSpecialImage> internal_fromBM(SkImageFilter::Proxy*, const SkBitmap&, - const SkSurfaceProps*); - SkImageFilter::Proxy* internal_getProxy() const; + static sk_sp<SkSpecialImage> internal_fromBM(const SkBitmap&, const SkSurfaceProps*); // TODO: hide this when GrLayerHoister uses SkSpecialImages more fully (see skbug.com/5063) /** @@ -148,24 +142,13 @@ public: bool getROPixels(SkBitmap*) const; protected: - SkSpecialImage(SkImageFilter::Proxy*, const SkIRect& subset, uint32_t uniqueID, - const SkSurfaceProps*); - - // The following 2 are for testing and shouldn't be used. - friend class TestingSpecialImageAccess; - friend class TestingSpecialSurfaceAccess; - - // TODO: remove this ASAP (see skbug.com/4965) - SkImageFilter::Proxy* proxy() const { return fProxy; } + SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*); private: const SkSurfaceProps fProps; const SkIRect fSubset; const uint32_t fUniqueID; - // TODO: remove this ASAP (see skbug.com/4965) - SkImageFilter::Proxy* fProxy; - typedef SkRefCnt INHERITED; }; |