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

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

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SynchronizeCommandBuffer() -> EnsureWorkVisible() Created 4 years, 11 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 "components/mus/gles2/command_buffer_local_client.h" 10 #include "components/mus/gles2/command_buffer_local_client.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 void CommandBufferLocal::SetLock(base::Lock* lock) { 214 void CommandBufferLocal::SetLock(base::Lock* lock) {
215 NOTIMPLEMENTED(); 215 NOTIMPLEMENTED();
216 } 216 }
217 217
218 bool CommandBufferLocal::IsGpuChannelLost() { 218 bool CommandBufferLocal::IsGpuChannelLost() {
219 // This is only possible for out-of-process command buffers. 219 // This is only possible for out-of-process command buffers.
220 return false; 220 return false;
221 } 221 }
222 222
223 void CommandBufferLocal::EnsureWorkVisible() {
224 // This is only relevant for out-of-process command buffers.
225 }
226
223 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { 227 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const {
224 return gpu::CommandBufferNamespace::MOJO_LOCAL; 228 return gpu::CommandBufferNamespace::MOJO_LOCAL;
225 } 229 }
226 230
227 uint64_t CommandBufferLocal::GetCommandBufferID() const { 231 uint64_t CommandBufferLocal::GetCommandBufferID() const {
228 return command_buffer_id_; 232 return command_buffer_id_;
229 } 233 }
230 234
231 int32_t CommandBufferLocal::GetExtraCommandBufferData() const { 235 int32_t CommandBufferLocal::GetExtraCommandBufferData() const {
232 return 0; 236 return 0;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 gpu::CommandBuffer::State state = command_buffer_->GetLastState(); 344 gpu::CommandBuffer::State state = command_buffer_->GetLastState();
341 OnContextLost(state.context_lost_reason); 345 OnContextLost(state.context_lost_reason);
342 } 346 }
343 347
344 void CommandBufferLocal::OnContextLost(uint32_t reason) { 348 void CommandBufferLocal::OnContextLost(uint32_t reason) {
345 if (client_) 349 if (client_)
346 client_->DidLoseContext(); 350 client_->DidLoseContext();
347 } 351 }
348 352
349 } // namespace mus 353 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698