diff options
author | 2017-03-14 14:39:29 -0400 | |
---|---|---|
committer | 2017-03-14 21:23:44 +0000 | |
commit | 26c90e04797e15c37ec00e0f836292b8a207d294 (patch) | |
tree | c5a86abbf8cfa796a87df49a157de0e12de18f87 /src/core/SkSpecialImage.cpp | |
parent | 97180af7f5e577a451367aa0c15cfaff1b6076f5 (diff) |
Add GrRenderTargetContext::resourceProvider & GrResourceProvider::caps
and retract GrSurfaceContextPriv a bit
Change-Id: Id47af1052f9bda4fe7c85b3ce46b3ebe37797524
Reviewed-on: https://skia-review.googlesource.com/9647
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkSpecialImage.cpp')
-rw-r--r-- | src/core/SkSpecialImage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp index 331ee66fb6..411b0ea289 100644 --- a/src/core/SkSpecialImage.cpp +++ b/src/core/SkSpecialImage.cpp @@ -105,7 +105,7 @@ sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { // TODO: this is a tight copy of 'bmp' but it doesn't have to be (given SkSpecialImage's // semantics). Since this is cached though we would have to bake the fit into the cache key. - sk_sp<GrTextureProxy> proxy = GrMakeCachedBitmapProxy(context, bmp); + sk_sp<GrTextureProxy> proxy = GrMakeCachedBitmapProxy(context->resourceProvider(), bmp); if (!proxy) { return nullptr; } @@ -249,7 +249,7 @@ public: #if SK_SUPPORT_GPU sk_sp<GrTextureProxy> onAsTextureProxyRef(GrContext* context) const override { if (context) { - return GrMakeCachedBitmapProxy(context, fBitmap); + return GrMakeCachedBitmapProxy(context->resourceProvider(), fBitmap); } return nullptr; |