aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrYUVProvider.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-08 14:32:55 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-08 22:37:42 +0000
commit538f1a36e3cd0327ee2639693143179ec0359151 (patch)
treed7bb0d1a15e23e952038967f87a69185d981c07f /src/gpu/GrYUVProvider.cpp
parentf141fff87abdc68d1a5adba6ea77d1885952ca5b (diff)
Switch GrYUVProvider over to GrTextureProxies
This is split out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors) Change-Id: I302e6b4c1ffed449a990288ec06f2dfdcdadf1f8 Reviewed-on: https://skia-review.googlesource.com/9448 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrYUVProvider.cpp')
-rw-r--r--src/gpu/GrYUVProvider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrYUVProvider.cpp b/src/gpu/GrYUVProvider.cpp
index ee2ad636c5..8d921a4f5a 100644
--- a/src/gpu/GrYUVProvider.cpp
+++ b/src/gpu/GrYUVProvider.cpp
@@ -84,9 +84,9 @@ bool YUVScoper::init(GrYUVProvider* provider, SkYUVPlanesCache::Info* yuvInfo, v
return true;
}
-sk_sp<GrTexture> GrYUVProvider::refAsTexture(GrContext* ctx,
- const GrSurfaceDesc& desc,
- bool useCache) {
+sk_sp<GrTextureProxy> GrYUVProvider::refAsTextureProxy(GrContext* ctx,
+ const GrSurfaceDesc& desc,
+ bool useCache) {
SkYUVPlanesCache::Info yuvInfo;
void* planes[3];
YUVScoper scoper;
@@ -159,5 +159,5 @@ sk_sp<GrTexture> GrYUVProvider::refAsTexture(GrContext* ctx,
renderTargetContext->drawRect(GrNoClip(), std::move(paint), GrAA::kNo, SkMatrix::I(), r);
- return renderTargetContext->asTexture();
+ return renderTargetContext->asTextureProxyRef();
}