| 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 "components/mus/public/cpp/lib/command_buffer_client_impl.h" | 5 #include "components/mus/public/cpp/lib/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> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
| 15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
| 16 #include "components/mus/common/gpu_type_converters.h" | 16 #include "components/mus/common/gpu_type_converters.h" |
| 17 #include "components/mus/gles2/mojo_buffer_backing.h" | 17 #include "components/mus/common/mojo_buffer_backing.h" |
| 18 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" | 18 #include "components/mus/common/mojo_gpu_memory_buffer.h" |
| 19 #include "gpu/command_buffer/client/gpu_control_client.h" | 19 #include "gpu/command_buffer/client/gpu_control_client.h" |
| 20 #include "gpu/command_buffer/common/command_buffer_id.h" | 20 #include "gpu/command_buffer/common/command_buffer_id.h" |
| 21 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 21 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
| 22 #include "gpu/command_buffer/common/sync_token.h" | 22 #include "gpu/command_buffer/common/sync_token.h" |
| 23 #include "mojo/public/cpp/system/platform_handle.h" | 23 #include "mojo/public/cpp/system/platform_handle.h" |
| 24 | 24 |
| 25 namespace mus { | 25 namespace mus { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 374 |
| 375 // It is also safe to wait on the same context. | 375 // It is also safe to wait on the same context. |
| 376 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && | 376 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && |
| 377 sync_token->command_buffer_id() == GetCommandBufferID()) | 377 sync_token->command_buffer_id() == GetCommandBufferID()) |
| 378 return true; | 378 return true; |
| 379 | 379 |
| 380 return false; | 380 return false; |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace mus | 383 } // namespace mus |
| OLD | NEW |