aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContext.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-30 08:02:11 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-30 12:55:37 +0000
commit7ee385e1dc3cd6a47dc8f7297fef6e175eaba224 (patch)
tree47e0c374c185e4d94a536a468bb39387acdb3bf4 /src/gpu/GrRenderTargetContext.cpp
parentd1443efcb8cc91e2ba25e7e5d9735735a95f5169 (diff)
Add GrSurfaceProxy* parameter to GrContext::flush
Split out of: https://skia-review.googlesource.com/c/10284/ (Omnibus: Remove GrSurface-derived classes from ops) Change-Id: I12c66a6fa826c2363b21ece56391fb352d12d6b3 Reviewed-on: https://skia-review.googlesource.com/10541 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r--src/gpu/GrRenderTargetContext.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp
index babdb1a566..13413287d7 100644
--- a/src/gpu/GrRenderTargetContext.cpp
+++ b/src/gpu/GrRenderTargetContext.cpp
@@ -1334,16 +1334,7 @@ void GrRenderTargetContext::prepareForExternalIO() {
SkDEBUGCODE(this->validate();)
GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrRenderTargetContext::prepareForExternalIO");
- // Deferral of the VRAM resources must end in this instance anyway
- sk_sp<GrRenderTarget> rt(
- sk_ref_sp(fRenderTargetProxy->instantiate(fContext->resourceProvider())));
- if (!rt) {
- return;
- }
-
- ASSERT_OWNED_RESOURCE(rt);
-
- this->drawingManager()->prepareSurfaceForExternalIO(rt.get());
+ this->drawingManager()->prepareSurfaceForExternalIO(fRenderTargetProxy.get());
}
void GrRenderTargetContext::drawNonAAFilledRect(const GrClip& clip,