提交 44429c06 编写于 作者: A Adam Barth

Clear the background during load (#2710)

Previously we'd draw uninitialized memory. Now we draw black.

Fixes #3447
上级 f5635dbb
......@@ -62,6 +62,10 @@ void RasterizerDirect::OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widge
// isolates. During this time, we are free to create the context. Thus
// avoiding a delay when the first frame is painted.
EnsureGLContext();
CHECK(context_->MakeCurrent(surface_.get()));
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
surface_->SwapBuffers();
}
void RasterizerDirect::Draw(uint64_t layer_tree_ptr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册