OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/gles2/command_buffer_local.h" | 5 #include "components/mus/gles2/command_buffer_local.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "components/mus/gles2/command_buffer_local_client.h" | 10 #include "components/mus/gles2/command_buffer_local_client.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const base::Closure& callback) { | 204 const base::Closure& callback) { |
205 gpu_state_->sync_point_manager()->AddSyncPointCallback(sync_point, callback); | 205 gpu_state_->sync_point_manager()->AddSyncPointCallback(sync_point, callback); |
206 } | 206 } |
207 | 207 |
208 void CommandBufferLocal::SignalQuery(uint32_t query, | 208 void CommandBufferLocal::SignalQuery(uint32_t query, |
209 const base::Closure& callback) { | 209 const base::Closure& callback) { |
210 // TODO(piman) | 210 // TODO(piman) |
211 NOTIMPLEMENTED(); | 211 NOTIMPLEMENTED(); |
212 } | 212 } |
213 | 213 |
214 void CommandBufferLocal::SetSurfaceVisible(bool visible) { | |
215 // TODO(piman) | |
216 NOTIMPLEMENTED(); | |
217 } | |
218 | |
219 void CommandBufferLocal::SetLock(base::Lock* lock) { | 214 void CommandBufferLocal::SetLock(base::Lock* lock) { |
220 NOTIMPLEMENTED(); | 215 NOTIMPLEMENTED(); |
221 } | 216 } |
222 | 217 |
223 bool CommandBufferLocal::IsGpuChannelLost() { | 218 bool CommandBufferLocal::IsGpuChannelLost() { |
224 // This is only possible for out-of-process command buffers. | 219 // This is only possible for out-of-process command buffers. |
225 return false; | 220 return false; |
226 } | 221 } |
227 | 222 |
228 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { | 223 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 gpu::CommandBuffer::State state = command_buffer_->GetLastState(); | 336 gpu::CommandBuffer::State state = command_buffer_->GetLastState(); |
342 OnContextLost(state.context_lost_reason); | 337 OnContextLost(state.context_lost_reason); |
343 } | 338 } |
344 | 339 |
345 void CommandBufferLocal::OnContextLost(uint32_t reason) { | 340 void CommandBufferLocal::OnContextLost(uint32_t reason) { |
346 if (client_) | 341 if (client_) |
347 client_->DidLoseContext(); | 342 client_->DidLoseContext(); |
348 } | 343 } |
349 | 344 |
350 } // namespace mus | 345 } // namespace mus |
OLD | NEW |