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>
This commit is contained in:
parent
e7492fe49c
commit
33fea05c3f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user