Chromium Code Reviews| Index: src/core/SkSpecialSurface.h |
| diff --git a/src/core/SkSpecialSurface.h b/src/core/SkSpecialSurface.h |
| index 216ef3f41e86bb2914a067a37e07bd59e2f833c3..9b0ef589bd57f8874e90c8ee4bdb116f1a7890e5 100644 |
| --- a/src/core/SkSpecialSurface.h |
| +++ b/src/core/SkSpecialSurface.h |
| @@ -53,20 +53,23 @@ public: |
| /** |
| * Use an existing (renderTarget-capable) GrTexture as the backing store. |
| */ |
| - static SkSpecialSurface* NewFromTexture(const SkIRect& subset, GrTexture*, |
| + static SkSpecialSurface* NewFromTexture(SkImageFilter::Proxy* proxy, |
| + const SkIRect& subset, GrTexture*, |
| const SkSurfaceProps* = nullptr); |
| /** |
| * Allocate a new GPU-backed SkSpecialSurface. If the requested surface cannot |
| * be created, nullptr will be returned. |
| */ |
| - static SkSpecialSurface* NewRenderTarget(GrContext*, const GrSurfaceDesc&, |
| + static SkSpecialSurface* NewRenderTarget(SkImageFilter::Proxy* proxy, |
| + GrContext*, const GrSurfaceDesc&, |
| const SkSurfaceProps* = nullptr); |
| /** |
| * Use and existing SkBitmap as the backing store. |
| */ |
| - static SkSpecialSurface* NewFromBitmap(const SkIRect& subset, SkBitmap& bm, |
| + static SkSpecialSurface* NewFromBitmap(SkImageFilter::Proxy* proxy, |
| + const SkIRect& subset, SkBitmap& bm, |
| const SkSurfaceProps* = nullptr); |
| /** |
| @@ -76,19 +79,26 @@ public: |
| * If the requested surface cannot be created, or the request is not a |
| * supported configuration, nullptr will be returned. |
| */ |
| - static SkSpecialSurface* NewRaster(const SkImageInfo&, const SkSurfaceProps* = nullptr); |
| + static SkSpecialSurface* NewRaster(SkImageFilter::Proxy* proxy, |
| + const SkImageInfo&, const SkSurfaceProps* = nullptr); |
| protected: |
| - SkSpecialSurface(const SkIRect& subset, const SkSurfaceProps*); |
| + SkSpecialSurface(SkImageFilter::Proxy*, const SkIRect& subset, const SkSurfaceProps*); |
| // For testing only |
| friend class TestingSpecialSurfaceAccess; |
| const SkIRect& subset() const { return fSubset; } |
| + // TODO: remove this ASAP |
|
Stephen White
2016/02/17 21:44:03
Replace w/bug ID?
robertphillips
2016/02/18 13:18:39
Done.
|
| + SkImageFilter::Proxy* proxy() const { return fProxy; } |
| + |
| private: |
| const SkSurfaceProps fProps; |
| const SkIRect fSubset; |
| + // TODO: remove ASAP |
| + SkImageFilter::Proxy* fProxy; |
| + |
| typedef SkRefCnt INHERITED; |
| }; |