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 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "components/view_manager/public/interfaces/command_buffer.mojom.h" | 11 #include "components/mus/public/interfaces/command_buffer.mojom.h" |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
13 | 13 |
14 namespace gles2 { | 14 namespace gles2 { |
15 class CommandBufferDriver; | 15 class CommandBufferDriver; |
16 class CommandBufferImplObserver; | 16 class CommandBufferImplObserver; |
17 class GpuState; | 17 class GpuState; |
18 | 18 |
19 // This class listens to the CommandBuffer message pipe on a low-latency thread | 19 // This class listens to the CommandBuffer message pipe on a low-latency thread |
20 // so that we can insert sync points without blocking on the GL driver. It | 20 // so that we can insert sync points without blocking on the GL driver. It |
21 // forwards most method calls to the CommandBufferDriver, which runs on the | 21 // forwards most method calls to the CommandBufferDriver, which runs on the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 mojo::CommandBufferSyncPointClientPtr sync_point_client_; | 72 mojo::CommandBufferSyncPointClientPtr sync_point_client_; |
73 mojo::Binding<CommandBuffer> binding_; | 73 mojo::Binding<CommandBuffer> binding_; |
74 CommandBufferImplObserver* observer_; | 74 CommandBufferImplObserver* observer_; |
75 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_; | 75 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 77 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace gles2 | 80 } // namespace gles2 |
81 | 81 |
82 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 82 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |