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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/service/in_process_command_buffer.h" 5 #include "gpu/command_buffer/service/in_process_command_buffer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 977
978 void InProcessCommandBuffer::SetLock(base::Lock*) { 978 void InProcessCommandBuffer::SetLock(base::Lock*) {
979 } 979 }
980 980
981 bool InProcessCommandBuffer::IsGpuChannelLost() { 981 bool InProcessCommandBuffer::IsGpuChannelLost() {
982 // There is no such channel to lose for in-process contexts. This only 982 // There is no such channel to lose for in-process contexts. This only
983 // makes sense for out-of-process command buffers. 983 // makes sense for out-of-process command buffers.
984 return false; 984 return false;
985 } 985 }
986 986
987 void InProcessCommandBuffer::EnsureWorkVisible() {
988 // This is only relevant for out-of-process command buffers.
989 }
990
987 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { 991 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const {
988 return CommandBufferNamespace::IN_PROCESS; 992 return CommandBufferNamespace::IN_PROCESS;
989 } 993 }
990 994
991 uint64_t InProcessCommandBuffer::GetCommandBufferID() const { 995 uint64_t InProcessCommandBuffer::GetCommandBufferID() const {
992 return command_buffer_id_; 996 return command_buffer_id_;
993 } 997 }
994 998
995 int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const { 999 int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const {
996 return 0; 1000 return 0;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 framebuffer_completeness_cache_ = 1149 framebuffer_completeness_cache_ =
1146 new gpu::gles2::FramebufferCompletenessCache; 1150 new gpu::gles2::FramebufferCompletenessCache;
1147 return framebuffer_completeness_cache_; 1151 return framebuffer_completeness_cache_;
1148 } 1152 }
1149 1153
1150 SyncPointManager* GpuInProcessThread::sync_point_manager() { 1154 SyncPointManager* GpuInProcessThread::sync_point_manager() {
1151 return sync_point_manager_; 1155 return sync_point_manager_;
1152 } 1156 }
1153 1157
1154 } // namespace gpu 1158 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698