| 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 <queue> | 7 #include <queue> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager(); | 960 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager(); |
| 961 DCHECK(query_manager_); | 961 DCHECK(query_manager_); |
| 962 | 962 |
| 963 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id); | 963 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id); |
| 964 if (!query) | 964 if (!query) |
| 965 callback.Run(); | 965 callback.Run(); |
| 966 else | 966 else |
| 967 query->AddCallback(callback); | 967 query->AddCallback(callback); |
| 968 } | 968 } |
| 969 | 969 |
| 970 void InProcessCommandBuffer::SetSurfaceVisible(bool visible) {} | |
| 971 | |
| 972 void InProcessCommandBuffer::SetLock(base::Lock*) { | 970 void InProcessCommandBuffer::SetLock(base::Lock*) { |
| 973 } | 971 } |
| 974 | 972 |
| 975 bool InProcessCommandBuffer::IsGpuChannelLost() { | 973 bool InProcessCommandBuffer::IsGpuChannelLost() { |
| 976 // There is no such channel to lose for in-process contexts. This only | 974 // There is no such channel to lose for in-process contexts. This only |
| 977 // makes sense for out-of-process command buffers. | 975 // makes sense for out-of-process command buffers. |
| 978 return false; | 976 return false; |
| 979 } | 977 } |
| 980 | 978 |
| 981 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { | 979 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 framebuffer_completeness_cache_ = | 1133 framebuffer_completeness_cache_ = |
| 1136 new gpu::gles2::FramebufferCompletenessCache; | 1134 new gpu::gles2::FramebufferCompletenessCache; |
| 1137 return framebuffer_completeness_cache_; | 1135 return framebuffer_completeness_cache_; |
| 1138 } | 1136 } |
| 1139 | 1137 |
| 1140 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1138 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
| 1141 return sync_point_manager_; | 1139 return sync_point_manager_; |
| 1142 } | 1140 } |
| 1143 | 1141 |
| 1144 } // namespace gpu | 1142 } // namespace gpu |
| OLD | NEW |