| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |