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

Unified Diff: src/core/SkSpecialSurface.h

Issue 1705113002: Update SkSpecialImage API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-gpu build Created 4 years, 10 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
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | src/core/SkSpecialSurface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpecialSurface.h
diff --git a/src/core/SkSpecialSurface.h b/src/core/SkSpecialSurface.h
index 216ef3f41e86bb2914a067a37e07bd59e2f833c3..546ec0c303ca956be01965c9e965be42d76f1519 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 (see skbug.com/4965)
+ SkImageFilter::Proxy* proxy() const { return fProxy; }
+
private:
const SkSurfaceProps fProps;
const SkIRect fSubset;
+ // TODO: remove this ASAP (see skbug.com/4965)
+ SkImageFilter::Proxy* fProxy;
+
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | src/core/SkSpecialSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698