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 CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMPL_H
_ |
7 | 7 |
8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
9 #include "cc/blink/context_provider_web_context.h" | 9 #include "cc/blink/context_provider_web_context.h" |
10 #include "content/browser/android/in_process/synchronous_input_event_filter.h" | 10 #include "content/browser/android/in_process/synchronous_input_event_filter.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class GLInProcessContext; | 21 class GLInProcessContext; |
22 } | 22 } |
23 | 23 |
24 namespace gpu_blink { | 24 namespace gpu_blink { |
25 class WebGraphicsContext3DInProcessCommandBufferImpl; | 25 class WebGraphicsContext3DInProcessCommandBufferImpl; |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 class InProcessChildThreadParams; | 30 class InProcessChildThreadParams; |
31 class SynchronousCompositorContextProvider; | |
32 | 31 |
33 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 32 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
34 public: | 33 public: |
35 SynchronousCompositorFactoryImpl(); | 34 SynchronousCompositorFactoryImpl(); |
36 ~SynchronousCompositorFactoryImpl() override; | 35 ~SynchronousCompositorFactoryImpl() override; |
37 | 36 |
38 // SynchronousCompositorFactory | 37 // SynchronousCompositorFactory |
39 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() | 38 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() |
40 override; | 39 override; |
41 scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 40 scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 scoped_refptr<gpu::InProcessCommandBuffer::Service> GpuThreadService(); | 81 scoped_refptr<gpu::InProcessCommandBuffer::Service> GpuThreadService(); |
83 | 82 |
84 SynchronousInputEventFilter synchronous_input_event_filter_; | 83 SynchronousInputEventFilter synchronous_input_event_filter_; |
85 | 84 |
86 scoped_refptr<gpu::InProcessCommandBuffer::Service> android_view_service_; | 85 scoped_refptr<gpu::InProcessCommandBuffer::Service> android_view_service_; |
87 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_thread_service_; | 86 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_thread_service_; |
88 | 87 |
89 class VideoContextProvider; | 88 class VideoContextProvider; |
90 scoped_refptr<VideoContextProvider> video_context_provider_; | 89 scoped_refptr<VideoContextProvider> video_context_provider_; |
91 | 90 |
92 scoped_refptr<SynchronousCompositorContextProvider> shared_worker_context_; | |
93 | |
94 bool use_ipc_command_buffer_; | 91 bool use_ipc_command_buffer_; |
95 | 92 |
96 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 93 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
97 // read on renderer main thread. | 94 // read on renderer main thread. |
98 base::Lock num_hardware_compositor_lock_; | 95 base::Lock num_hardware_compositor_lock_; |
99 unsigned int num_hardware_compositors_; | 96 unsigned int num_hardware_compositors_; |
100 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 97 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
101 }; | 98 }; |
102 | 99 |
103 } // namespace content | 100 } // namespace content |
104 | 101 |
105 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 102 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
OLD | NEW |