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