| 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) { | 202 int32 CommandBufferLocal::CreateStreamTexture(uint32_t texture_id) { |
| 203 // TODO(piman) | 203 // TODO(piman) |
| 204 NOTIMPLEMENTED(); | 204 NOTIMPLEMENTED(); |
| 205 return 0; | 205 return 0; |
| 206 } | 206 } |
| 207 | 207 |
| 208 void CommandBufferLocal::SetStreamTextureSize(uint32 texture_id, |
| 209 int32 stream_id, |
| 210 size_t width, |
| 211 size_t height) { |
| 212 // TODO(piman) |
| 213 NOTIMPLEMENTED(); |
| 214 } |
| 215 |
| 208 void CommandBufferLocal::SetLock(base::Lock* lock) { | 216 void CommandBufferLocal::SetLock(base::Lock* lock) { |
| 209 NOTIMPLEMENTED(); | 217 NOTIMPLEMENTED(); |
| 210 } | 218 } |
| 211 | 219 |
| 212 bool CommandBufferLocal::IsGpuChannelLost() { | 220 bool CommandBufferLocal::IsGpuChannelLost() { |
| 213 // This is only possible for out-of-process command buffers. | 221 // This is only possible for out-of-process command buffers. |
| 214 return false; | 222 return false; |
| 215 } | 223 } |
| 216 | 224 |
| 217 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const { | 225 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) { | 336 void CommandBufferLocal::OnContextLost(uint32_t reason) { |
| 329 if (client_) | 337 if (client_) |
| 330 client_->DidLoseContext(); | 338 client_->DidLoseContext(); |
| 331 } | 339 } |
| 332 | 340 |
| 333 void CommandBufferLocal::OnSyncPointRetired() { | 341 void CommandBufferLocal::OnSyncPointRetired() { |
| 334 scheduler_->SetScheduled(true); | 342 scheduler_->SetScheduled(true); |
| 335 } | 343 } |
| 336 | 344 |
| 337 } // namespace mus | 345 } // namespace mus |
| OLD | NEW |