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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.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
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/gles2/command_buffer_client_impl.h" 5 #include "mojo/gles2/command_buffer_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } 343 }
344 344
345 void CommandBufferClientImpl::SetLock(base::Lock* lock) { 345 void CommandBufferClientImpl::SetLock(base::Lock* lock) {
346 } 346 }
347 347
348 bool CommandBufferClientImpl::IsGpuChannelLost() { 348 bool CommandBufferClientImpl::IsGpuChannelLost() {
349 // This is only possible for out-of-process command buffers. 349 // This is only possible for out-of-process command buffers.
350 return false; 350 return false;
351 } 351 }
352 352
353 void CommandBufferClientImpl::EnsureWorkVisible() {
354 // This is only relevant for out-of-process command buffers.
355 }
356
353 gpu::CommandBufferNamespace CommandBufferClientImpl::GetNamespaceID() const { 357 gpu::CommandBufferNamespace CommandBufferClientImpl::GetNamespaceID() const {
354 return gpu::CommandBufferNamespace::MOJO; 358 return gpu::CommandBufferNamespace::MOJO;
355 } 359 }
356 360
357 uint64_t CommandBufferClientImpl::GetCommandBufferID() const { 361 uint64_t CommandBufferClientImpl::GetCommandBufferID() const {
358 return command_buffer_id_; 362 return command_buffer_id_;
359 } 363 }
360 364
361 int32_t CommandBufferClientImpl::GetExtraCommandBufferData() const { 365 int32_t CommandBufferClientImpl::GetExtraCommandBufferData() const {
362 return 0; 366 return 0;
(...skipping 29 matching lines...) Expand all
392 396
393 // It is also safe to wait on the same context. 397 // It is also safe to wait on the same context.
394 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && 398 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO &&
395 sync_token->command_buffer_id() == GetCommandBufferID()) 399 sync_token->command_buffer_id() == GetCommandBufferID())
396 return true; 400 return true;
397 401
398 return false; 402 return false;
399 } 403 }
400 404
401 } // namespace gles2 405 } // namespace gles2
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698