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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "components/mus/gles2/command_buffer_local_client.h" | 9 #include "components/mus/gles2/command_buffer_local_client.h" |
10 #include "components/mus/gles2/gpu_memory_tracker.h" | 10 #include "components/mus/gles2/gpu_memory_tracker.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 const base::Closure& callback) { | 192 const base::Closure& callback) { |
193 // TODO(piman) | 193 // TODO(piman) |
194 NOTIMPLEMENTED(); | 194 NOTIMPLEMENTED(); |
195 } | 195 } |
196 | 196 |
197 void CommandBufferLocal::SetSurfaceVisible(bool visible) { | 197 void CommandBufferLocal::SetSurfaceVisible(bool visible) { |
198 // TODO(piman) | 198 // TODO(piman) |
199 NOTIMPLEMENTED(); | 199 NOTIMPLEMENTED(); |
200 } | 200 } |
201 | 201 |
202 uint32_t CommandBufferLocal::CreateStreamTexture(uint32_t texture_id) { | |
203 // TODO(piman) | |
204 NOTIMPLEMENTED(); | |
205 return 0; | |
206 } | |
207 | |
208 void CommandBufferLocal::SetLock(base::Lock* lock) { | 202 void CommandBufferLocal::SetLock(base::Lock* lock) { |
209 NOTIMPLEMENTED(); | 203 NOTIMPLEMENTED(); |
210 } | 204 } |
211 | 205 |
212 bool CommandBufferLocal::IsGpuChannelLost() { | 206 bool CommandBufferLocal::IsGpuChannelLost() { |
213 // This is only possible for out-of-process command buffers. | 207 // This is only possible for out-of-process command buffers. |
214 return false; | 208 return false; |
215 } | 209 } |
216 | 210 |
217 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { | 211 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 void CommandBufferLocal::OnContextLost(uint32_t reason) { | 322 void CommandBufferLocal::OnContextLost(uint32_t reason) { |
329 if (client_) | 323 if (client_) |
330 client_->DidLoseContext(); | 324 client_->DidLoseContext(); |
331 } | 325 } |
332 | 326 |
333 void CommandBufferLocal::OnSyncPointRetired() { | 327 void CommandBufferLocal::OnSyncPointRetired() { |
334 scheduler_->SetScheduled(true); | 328 scheduler_->SetScheduled(true); |
335 } | 329 } |
336 | 330 |
337 } // namespace mus | 331 } // namespace mus |
OLD | NEW |