| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 callback.Run(); | 911 callback.Run(); |
| 912 else | 912 else |
| 913 query->AddCallback(callback); | 913 query->AddCallback(callback); |
| 914 } | 914 } |
| 915 | 915 |
| 916 void InProcessCommandBuffer::SetLock(base::Lock*) { | 916 void InProcessCommandBuffer::SetLock(base::Lock*) { |
| 917 // No support for using on multiple threads. | 917 // No support for using on multiple threads. |
| 918 NOTREACHED(); | 918 NOTREACHED(); |
| 919 } | 919 } |
| 920 | 920 |
| 921 bool InProcessCommandBuffer::IsGpuChannelLost() { |
| 922 // There is no such channel to lose for in-process contexts. This only |
| 923 // makes sense for out-of-process command buffers. |
| 924 return false; |
| 925 } |
| 926 |
| 921 void InProcessCommandBuffer::EnsureWorkVisible() { | 927 void InProcessCommandBuffer::EnsureWorkVisible() { |
| 922 // This is only relevant for out-of-process command buffers. | 928 // This is only relevant for out-of-process command buffers. |
| 923 } | 929 } |
| 924 | 930 |
| 925 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { | 931 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { |
| 926 return CommandBufferNamespace::IN_PROCESS; | 932 return CommandBufferNamespace::IN_PROCESS; |
| 927 } | 933 } |
| 928 | 934 |
| 929 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const { | 935 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const { |
| 930 return command_buffer_id_; | 936 return command_buffer_id_; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 framebuffer_completeness_cache_ = | 1061 framebuffer_completeness_cache_ = |
| 1056 new gpu::gles2::FramebufferCompletenessCache; | 1062 new gpu::gles2::FramebufferCompletenessCache; |
| 1057 return framebuffer_completeness_cache_; | 1063 return framebuffer_completeness_cache_; |
| 1058 } | 1064 } |
| 1059 | 1065 |
| 1060 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1066 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
| 1061 return sync_point_manager_; | 1067 return sync_point_manager_; |
| 1062 } | 1068 } |
| 1063 | 1069 |
| 1064 } // namespace gpu | 1070 } // namespace gpu |
| OLD | NEW |