diff --git a/sky/shell/gpu/direct/rasterizer_direct.cc b/sky/shell/gpu/direct/rasterizer_direct.cc index 5312fc4410f..1e66e006b25 100644 --- a/sky/shell/gpu/direct/rasterizer_direct.cc +++ b/sky/shell/gpu/direct/rasterizer_direct.cc @@ -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,