Commit af97e47a authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Fix raster decoder crashes with Vulkan

Bug: 1018725
Change-Id: I293f493fa87b43d3c7809d5cef960bb068588cb1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1883417Reviewed-by: default avatarVasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710005}
parent 7aa9321d
......@@ -138,7 +138,10 @@ gpu::ContextResult RasterCommandBufferStub::Initialize(
: "0");
scoped_refptr<gl::GLContext> context = shared_context_state->context();
if (!shared_context_state->MakeCurrent(nullptr)) {
// Raster decoder needs gl context for GPUTracing.
// TODO(penghuang): get rid of the gl dependeny when GL is not used for
// raster. https://crbug.com/c/1018725
if (!shared_context_state->MakeCurrent(nullptr, true /* needs_gl */)) {
LOG(ERROR) << "ContextResult::kTransientFailure: "
"Failed to make context current.";
return gpu::ContextResult::kTransientFailure;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment