| Index: content/renderer/gpu/mailbox_output_surface.cc
|
| diff --git a/content/renderer/gpu/mailbox_output_surface.cc b/content/renderer/gpu/mailbox_output_surface.cc
|
| index dbf7acbf7bb92c7bb0f845eedb1176184133d8e2..917a1f293d4c418c0dd95e15a86b23277dbf8c44 100644
|
| --- a/content/renderer/gpu/mailbox_output_surface.cc
|
| +++ b/content/renderer/gpu/mailbox_output_surface.cc
|
| @@ -199,8 +199,9 @@ void MailboxOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
|
| DCHECK(!surface_size_.IsEmpty());
|
| DCHECK(surface_size_ == current_backing_.size);
|
| DCHECK(frame->gl_frame_data->size == current_backing_.size);
|
| - DCHECK(!current_backing_.mailbox.IsZero() ||
|
| - context_provider_->IsContextLost());
|
| + DCHECK_IMPLIES(current_backing_.mailbox.IsZero(),
|
| + context_provider_->ContextGL()->GetGraphicsResetStatusKHR() !=
|
| + GL_NO_ERROR);
|
|
|
| frame->gl_frame_data->mailbox = current_backing_.mailbox;
|
| context_provider_->ContextGL()->Flush();
|
|
|