| Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| index d7ae282dc66a01a7dbbc9120c943596c3c627af3..93cca433d3460e033b297744b9aabe2302e19692 100644
|
| --- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| +++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| @@ -1657,6 +1657,15 @@ WGC3Dboolean WebGraphicsContext3DInProcessCommandBufferImpl::
|
| return gl_->UnmapBufferCHROMIUM(target);
|
| }
|
|
|
| +void WebGraphicsContext3DInProcessCommandBufferImpl::loseContextCHROMIUM(
|
| + WGC3Denum current, WGC3Denum other) {
|
| + ClearContext();
|
| + // TODO(danakj): Calling LoseContextCHROMIUM() on the command buffer also
|
| + // prevents recreating a valid context. So we only simulate the loss for now.
|
| + // http://crbug.com/166671
|
| + context_lost_reason_ = current;
|
| +}
|
| +
|
| GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
|
| onCreateGrGLInterface() {
|
| return CreateCommandBufferSkiaGLBinding();
|
|
|