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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager(); | 942 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager(); |
943 DCHECK(query_manager_); | 943 DCHECK(query_manager_); |
944 | 944 |
945 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id); | 945 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id); |
946 if (!query) | 946 if (!query) |
947 callback.Run(); | 947 callback.Run(); |
948 else | 948 else |
949 query->AddCallback(callback); | 949 query->AddCallback(callback); |
950 } | 950 } |
951 | 951 |
952 void InProcessCommandBuffer::SetSurfaceVisible(bool visible) {} | |
953 | |
954 void InProcessCommandBuffer::SetLock(base::Lock*) { | 952 void InProcessCommandBuffer::SetLock(base::Lock*) { |
955 } | 953 } |
956 | 954 |
957 bool InProcessCommandBuffer::IsGpuChannelLost() { | 955 bool InProcessCommandBuffer::IsGpuChannelLost() { |
958 // There is no such channel to lose for in-process contexts. This only | 956 // There is no such channel to lose for in-process contexts. This only |
959 // makes sense for out-of-process command buffers. | 957 // makes sense for out-of-process command buffers. |
960 return false; | 958 return false; |
961 } | 959 } |
962 | 960 |
963 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { | 961 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 framebuffer_completeness_cache_ = | 1124 framebuffer_completeness_cache_ = |
1127 new gpu::gles2::FramebufferCompletenessCache; | 1125 new gpu::gles2::FramebufferCompletenessCache; |
1128 return framebuffer_completeness_cache_; | 1126 return framebuffer_completeness_cache_; |
1129 } | 1127 } |
1130 | 1128 |
1131 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1129 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
1132 return sync_point_manager_; | 1130 return sync_point_manager_; |
1133 } | 1131 } |
1134 | 1132 |
1135 } // namespace gpu | 1133 } // namespace gpu |
OLD | NEW |