Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: components/mus/gles2/command_buffer_local.cc

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/gles2/command_buffer_local.h" 5 #include "components/mus/gles2/command_buffer_local.h"
6 6
7 #include "base/atomic_sequence_num.h" 7 #include "base/atomic_sequence_num.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 gpu_state_->command_buffer_task_runner()->PostTask( 327 gpu_state_->command_buffer_task_runner()->PostTask(
328 driver_.get(), base::Bind(&CommandBufferLocal::SignalQueryOnGpuThread, 328 driver_.get(), base::Bind(&CommandBufferLocal::SignalQueryOnGpuThread,
329 base::Unretained(this), query_id, callback)); 329 base::Unretained(this), query_id, callback));
330 } 330 }
331 331
332 void CommandBufferLocal::SetLock(base::Lock* lock) { 332 void CommandBufferLocal::SetLock(base::Lock* lock) {
333 DCHECK(CalledOnValidThread()); 333 DCHECK(CalledOnValidThread());
334 NOTIMPLEMENTED(); 334 NOTIMPLEMENTED();
335 } 335 }
336 336
337 bool CommandBufferLocal::IsGpuChannelLost() {
338 DCHECK(CalledOnValidThread());
339 // This is only possible for out-of-process command buffers.
340 return false;
341 }
342
343 void CommandBufferLocal::EnsureWorkVisible() { 337 void CommandBufferLocal::EnsureWorkVisible() {
344 // This is only relevant for out-of-process command buffers. 338 // This is only relevant for out-of-process command buffers.
345 } 339 }
346 340
347 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { 341 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const {
348 DCHECK(CalledOnValidThread()); 342 DCHECK(CalledOnValidThread());
349 return gpu::CommandBufferNamespace::MOJO_LOCAL; 343 return gpu::CommandBufferNamespace::MOJO_LOCAL;
350 } 344 }
351 345
352 gpu::CommandBufferId CommandBufferLocal::GetCommandBufferID() const { 346 gpu::CommandBufferId CommandBufferLocal::GetCommandBufferID() const {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 client_->UpdateVSyncParameters(timebase, interval); 578 client_->UpdateVSyncParameters(timebase, interval);
585 } 579 }
586 580
587 void CommandBufferLocal::OnGpuCompletedSwapBuffersOnClientThread( 581 void CommandBufferLocal::OnGpuCompletedSwapBuffersOnClientThread(
588 gfx::SwapResult result) { 582 gfx::SwapResult result) {
589 if (client_) 583 if (client_)
590 client_->GpuCompletedSwapBuffers(result); 584 client_->GpuCompletedSwapBuffers(result);
591 } 585 }
592 586
593 } // namespace mus 587 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | content/renderer/pepper/pepper_video_encoder_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698