diff options
author | Robert Phillips <robertphillips@google.com> | 2016-11-09 06:50:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-09 12:20:50 +0000 |
commit | 3743013f755d23c215d852af7d829c3cd74f34a2 (patch) | |
tree | f685cc82d3dc40153863552b55c2519582c84d15 /src/core/SkSpecialImage.h | |
parent | 7b8400dad2f82dcc6ed3c7cc1707ebaf85f04840 (diff) |
Consolidate GrSurfaceProxy Make methods
I think GrSurfaceDesc is still the most compact way to communicate the deferred GrSurface's settings to the Proxy but this CL, at least, reduces where it is used.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4559
Change-Id: Ica599c28a5aef1ed4094f47a4ac119e2d204d652
Reviewed-on: https://skia-review.googlesource.com/4559
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkSpecialImage.h')
-rw-r--r-- | src/core/SkSpecialImage.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkSpecialImage.h b/src/core/SkSpecialImage.h index 99e348920d..12847df115 100644 --- a/src/core/SkSpecialImage.h +++ b/src/core/SkSpecialImage.h @@ -16,6 +16,7 @@ #include "SkImageInfo.h" // for SkAlphaType class GrContext; +class GrSurfaceProxy; class GrTexture; class GrTextureProxy; class SkBitmap; @@ -87,7 +88,7 @@ public: static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrContext*, const SkIRect& subset, uint32_t uniqueID, - sk_sp<GrTextureProxy>, + sk_sp<GrSurfaceProxy>, sk_sp<SkColorSpace>, const SkSurfaceProps* = nullptr, SkAlphaType at = kPremul_SkAlphaType); |