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; |
31 | 32 |
32 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { | 33 class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory { |
33 public: | 34 public: |
34 SynchronousCompositorFactoryImpl(); | 35 SynchronousCompositorFactoryImpl(); |
35 ~SynchronousCompositorFactoryImpl() override; | 36 ~SynchronousCompositorFactoryImpl() override; |
36 | 37 |
37 // SynchronousCompositorFactory | 38 // SynchronousCompositorFactory |
38 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() | 39 scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner() |
39 override; | 40 override; |
40 bool RecordFullLayer() override; | 41 bool RecordFullLayer() override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 scoped_refptr<gpu::InProcessCommandBuffer::Service> GpuThreadService(); | 84 scoped_refptr<gpu::InProcessCommandBuffer::Service> GpuThreadService(); |
84 | 85 |
85 SynchronousInputEventFilter synchronous_input_event_filter_; | 86 SynchronousInputEventFilter synchronous_input_event_filter_; |
86 | 87 |
87 scoped_refptr<gpu::InProcessCommandBuffer::Service> android_view_service_; | 88 scoped_refptr<gpu::InProcessCommandBuffer::Service> android_view_service_; |
88 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_thread_service_; | 89 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_thread_service_; |
89 | 90 |
90 class VideoContextProvider; | 91 class VideoContextProvider; |
91 scoped_refptr<VideoContextProvider> video_context_provider_; | 92 scoped_refptr<VideoContextProvider> video_context_provider_; |
92 | 93 |
| 94 scoped_refptr<SynchronousCompositorContextProvider> shared_worker_context_; |
| 95 |
93 bool record_full_layer_; | 96 bool record_full_layer_; |
94 bool use_ipc_command_buffer_; | 97 bool use_ipc_command_buffer_; |
95 | 98 |
96 // |num_hardware_compositor_lock_| is updated on UI thread only but can be | 99 // |num_hardware_compositor_lock_| is updated on UI thread only but can be |
97 // read on renderer main thread. | 100 // read on renderer main thread. |
98 base::Lock num_hardware_compositor_lock_; | 101 base::Lock num_hardware_compositor_lock_; |
99 unsigned int num_hardware_compositors_; | 102 unsigned int num_hardware_compositors_; |
100 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
101 }; | 104 }; |
102 | 105 |
103 } // namespace content | 106 } // namespace content |
104 | 107 |
105 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ | 108 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_FACTORY_IMP
L_H_ |
OLD | NEW |