| 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/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 #include "mojo/services/public/interfaces/gpu/command_buffer.mojom.h" | 12 #include "mojo/services/gpu/public/interfaces/command_buffer.mojom.h" |
| 13 #include "mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom.
h" | 13 #include "mojo/services/gpu/public/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 mojo::ViewportParameterListenerPtr viewport_parameter_listener_; | 61 mojo::ViewportParameterListenerPtr viewport_parameter_listener_; |
| 62 mojo::StrongBinding<CommandBuffer> binding_; | 62 mojo::StrongBinding<CommandBuffer> binding_; |
| 63 | 63 |
| 64 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; | 64 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; |
| 65 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 65 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace gles2 | 68 } // namespace gles2 |
| 69 | 69 |
| 70 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ | 70 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |