Commit 81c69d4b authored by jbauman's avatar jbauman Committed by Commit bot

Fix SurfaceDisplayOutputSurface initialization on context failure.

BindToClient should return false so the compositor doesn't attempt to use the context.

Review URL: https://codereview.chromium.org/682963002

Cr-Commit-Position: refs/heads/master@{#301570}
parent fc3f7844
...@@ -69,10 +69,9 @@ bool SurfaceDisplayOutputSurface::BindToClient( ...@@ -69,10 +69,9 @@ bool SurfaceDisplayOutputSurface::BindToClient(
DCHECK(client); DCHECK(client);
DCHECK(display_client_); DCHECK(display_client_);
client_ = client; client_ = client;
display_client_->Initialize();
// Avoid initializing GL context here, as this should be sharing the // Avoid initializing GL context here, as this should be sharing the
// Display's context. // Display's context.
return true; return display_client_->Initialize();
} }
void SurfaceDisplayOutputSurface::ReturnResources( void SurfaceDisplayOutputSurface::ReturnResources(
......
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