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 SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ |
6 #define SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ | 6 #define SERVICES_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 "mojo/public/cpp/bindings/binding.h" | 11 #include "mojo/public/cpp/bindings/binding.h" |
12 #include "mojo/services/gpu/public/interfaces/command_buffer.mojom.h" | 12 #include "mojo/services/gpu/interfaces/command_buffer.mojom.h" |
13 #include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom.
h" | 13 #include "mojo/services/gpu/interfaces/viewport_parameter_listener.mojom.h" |
14 | 14 |
15 namespace gpu { | 15 namespace gpu { |
16 class SyncPointManager; | 16 class SyncPointManager; |
17 } | 17 } |
18 | 18 |
19 namespace gles2 { | 19 namespace gles2 { |
20 class CommandBufferDriver; | 20 class CommandBufferDriver; |
21 | 21 |
22 // This class listens to the CommandBuffer message pipe on a low-latency thread | 22 // This class listens to the CommandBuffer message pipe on a low-latency thread |
23 // so that we can insert sync points without blocking on the GL driver. It | 23 // so that we can insert sync points without blocking on the GL driver. It |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 mojo::Binding<CommandBuffer> binding_; | 77 mojo::Binding<CommandBuffer> binding_; |
78 Observer* observer_; | 78 Observer* observer_; |
79 | 79 |
80 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; | 80 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; |
81 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 81 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace gles2 | 84 } // namespace gles2 |
85 | 85 |
86 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ | 86 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |