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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.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 | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/display.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/tests/gl_manager.h" 5 #include "gpu/command_buffer/tests/gl_manager.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 #include <GLES2/gl2extchromium.h> 9 #include <GLES2/gl2extchromium.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 492
493 void GLManager::SetLock(base::Lock*) { 493 void GLManager::SetLock(base::Lock*) {
494 NOTIMPLEMENTED(); 494 NOTIMPLEMENTED();
495 } 495 }
496 496
497 bool GLManager::IsGpuChannelLost() { 497 bool GLManager::IsGpuChannelLost() {
498 NOTIMPLEMENTED(); 498 NOTIMPLEMENTED();
499 return false; 499 return false;
500 } 500 }
501 501
502 void GLManager::EnsureWorkVisible() {
503 // This is only relevant for out-of-process command buffers.
504 }
505
502 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const { 506 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const {
503 return gpu::CommandBufferNamespace::IN_PROCESS; 507 return gpu::CommandBufferNamespace::IN_PROCESS;
504 } 508 }
505 509
506 uint64_t GLManager::GetCommandBufferID() const { 510 uint64_t GLManager::GetCommandBufferID() const {
507 return command_buffer_id_; 511 return command_buffer_id_;
508 } 512 }
509 513
510 int32_t GLManager::GetExtraCommandBufferData() const { 514 int32_t GLManager::GetExtraCommandBufferData() const {
511 return 0; 515 return 0;
(...skipping 18 matching lines...) Expand all
530 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, 534 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token,
531 const base::Closure& callback) { 535 const base::Closure& callback) {
532 NOTIMPLEMENTED(); 536 NOTIMPLEMENTED();
533 } 537 }
534 538
535 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { 539 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) {
536 return false; 540 return false;
537 } 541 }
538 542
539 } // namespace gpu 543 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698