diff options
author | Brian Osman <brianosman@google.com> | 2017-09-08 10:37:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-08 15:26:53 +0000 |
commit | 33fea05c3f3f228b245cde99184d5ce790068745 (patch) | |
tree | c58619ec0e083bdd0cf1ef7847a7fcc49aa94520 /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | e7492fe49c61915b70bde648b75f9b6fc60b4bef (diff) |
Skip making a surface context when doing threaded SW paths
Bug: skia:
Change-Id: I4f78abc836f22a216e94a47cb2a7414edccbd2b6
Reviewed-on: https://skia-review.googlesource.com/44201
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 37433ff0c4..302426828f 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -168,13 +168,7 @@ static sk_sp<GrTextureProxy> make_deferred_mask_texture_proxy(GrContext* context desc.fWidth = width; desc.fHeight = height; desc.fConfig = kAlpha_8_GrPixelConfig; - - sk_sp<GrSurfaceContext> sContext = - context->contextPriv().makeDeferredSurfaceContext(desc, fit, SkBudgeted::kYes); - if (!sContext || !sContext->asTextureProxy()) { - return nullptr; - } - return sContext->asTextureProxyRef(); + return GrSurfaceProxy::MakeDeferred(context->resourceProvider(), desc, fit, SkBudgeted::kYes); } namespace { |