diff options
author | 2018-01-17 11:40:14 -0500 | |
---|---|---|
committer | 2018-01-17 17:04:26 +0000 | |
commit | 777707be8445b7d2f9cb235cd040cd1994dd2996 (patch) | |
tree | 3b7ee9039c39b1c77e75e6a880210f5a856a146b /src/gpu/GrClipStackClip.cpp | |
parent | 95379ebc0dfa6fe5af14dbebe251aec43c5ce919 (diff) |
Move GrSurfaceProxy::MakeLazy to GrProxyProvider::createLazy
This is pretty much a straight up move of the GrSurfaceProxy code with some plumbing to get the ProxyProvider in the right places.
Change-Id: I63cecb242dada503f97dbd1c0ce7ede75323100d
Reviewed-on: https://skia-review.googlesource.com/94200
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrClipStackClip.cpp')
-rw-r--r-- | src/gpu/GrClipStackClip.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrClipStackClip.cpp b/src/gpu/GrClipStackClip.cpp index 35fd52df0e..8f82ea1228 100644 --- a/src/gpu/GrClipStackClip.cpp +++ b/src/gpu/GrClipStackClip.cpp @@ -190,6 +190,7 @@ bool GrClipStackClip::apply(GrContext* context, GrRenderTargetContext* renderTar return true; } + GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); const auto* caps = context->caps()->shaderCaps(); int maxWindowRectangles = renderTargetContext->priv().maxWindowRectangles(); int maxAnalyticFPs = context->caps()->maxClipAnalyticFPs(); @@ -230,7 +231,8 @@ bool GrClipStackClip::apply(GrContext* context, GrRenderTargetContext* renderTar // can cause a flush or otherwise change which opList our draw is going into. uint32_t opListID = renderTargetContext->getOpList()->uniqueID(); int rtWidth = renderTargetContext->width(), rtHeight = renderTargetContext->height(); - if (auto clipFPs = reducedClip.finishAndDetachAnalyticFPs(opListID, rtWidth, rtHeight)) { + if (auto clipFPs = reducedClip.finishAndDetachAnalyticFPs(proxyProvider, opListID, + rtWidth, rtHeight)) { out->addCoverageFP(std::move(clipFPs)); } |