| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/gles2/command_buffer_client_impl.h" | 5 #include "mojo/gles2/command_buffer_client_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 343 } |
| 344 | 344 |
| 345 void CommandBufferClientImpl::SetLock(base::Lock* lock) { | 345 void CommandBufferClientImpl::SetLock(base::Lock* lock) { |
| 346 } | 346 } |
| 347 | 347 |
| 348 bool CommandBufferClientImpl::IsGpuChannelLost() { | 348 bool CommandBufferClientImpl::IsGpuChannelLost() { |
| 349 // This is only possible for out-of-process command buffers. | 349 // This is only possible for out-of-process command buffers. |
| 350 return false; | 350 return false; |
| 351 } | 351 } |
| 352 | 352 |
| 353 void CommandBufferClientImpl::EnsureWorkVisible() { |
| 354 // This is only relevant for out-of-process command buffers. |
| 355 } |
| 356 |
| 353 gpu::CommandBufferNamespace CommandBufferClientImpl::GetNamespaceID() const { | 357 gpu::CommandBufferNamespace CommandBufferClientImpl::GetNamespaceID() const { |
| 354 return gpu::CommandBufferNamespace::MOJO; | 358 return gpu::CommandBufferNamespace::MOJO; |
| 355 } | 359 } |
| 356 | 360 |
| 357 uint64_t CommandBufferClientImpl::GetCommandBufferID() const { | 361 uint64_t CommandBufferClientImpl::GetCommandBufferID() const { |
| 358 return command_buffer_id_; | 362 return command_buffer_id_; |
| 359 } | 363 } |
| 360 | 364 |
| 361 int32_t CommandBufferClientImpl::GetExtraCommandBufferData() const { | 365 int32_t CommandBufferClientImpl::GetExtraCommandBufferData() const { |
| 362 return 0; | 366 return 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 392 | 396 |
| 393 // It is also safe to wait on the same context. | 397 // It is also safe to wait on the same context. |
| 394 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && | 398 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && |
| 395 sync_token->command_buffer_id() == GetCommandBufferID()) | 399 sync_token->command_buffer_id() == GetCommandBufferID()) |
| 396 return true; | 400 return true; |
| 397 | 401 |
| 398 return false; | 402 return false; |
| 399 } | 403 } |
| 400 | 404 |
| 401 } // namespace gles2 | 405 } // namespace gles2 |
| OLD | NEW |