OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class MessageLoopProxy; | 45 class MessageLoopProxy; |
46 class SingleThreadTaskRunner; | 46 class SingleThreadTaskRunner; |
47 class Thread; | 47 class Thread; |
48 } | 48 } |
49 | 49 |
50 namespace cc { | 50 namespace cc { |
51 class ContextProvider; | 51 class ContextProvider; |
52 } | 52 } |
53 | 53 |
54 namespace IPC { | 54 namespace IPC { |
55 class ForwardingMessageFilter; | |
56 class MessageFilter; | 55 class MessageFilter; |
57 } | 56 } |
58 | 57 |
59 namespace media { | 58 namespace media { |
60 class AudioHardwareConfig; | 59 class AudioHardwareConfig; |
61 class GpuVideoAcceleratorFactories; | 60 class GpuVideoAcceleratorFactories; |
62 } | 61 } |
63 | 62 |
64 namespace v8 { | 63 namespace v8 { |
65 class Extension; | 64 class Extension; |
66 } | 65 } |
67 | 66 |
68 namespace webkit { | 67 namespace webkit { |
69 namespace gpu { | 68 namespace gpu { |
70 class ContextProviderWebContext; | 69 class ContextProviderWebContext; |
71 class GrContextForWebGraphicsContext3D; | 70 class GrContextForWebGraphicsContext3D; |
72 } | 71 } |
73 } | 72 } |
74 | 73 |
75 namespace content { | 74 namespace content { |
76 | 75 |
77 class AppCacheDispatcher; | 76 class AppCacheDispatcher; |
78 class AecDumpMessageFilter; | 77 class AecDumpMessageFilter; |
79 class AudioInputMessageFilter; | 78 class AudioInputMessageFilter; |
80 class AudioMessageFilter; | 79 class AudioMessageFilter; |
81 class AudioRendererMixerManager; | 80 class AudioRendererMixerManager; |
| 81 class CompositorForwardingMessageFilter; |
82 class ContextProviderCommandBuffer; | 82 class ContextProviderCommandBuffer; |
83 class DBMessageFilter; | 83 class DBMessageFilter; |
84 class DevToolsAgentFilter; | 84 class DevToolsAgentFilter; |
85 class DomStorageDispatcher; | 85 class DomStorageDispatcher; |
86 class EmbeddedWorkerDispatcher; | 86 class EmbeddedWorkerDispatcher; |
87 class GpuChannelHost; | 87 class GpuChannelHost; |
88 class IndexedDBDispatcher; | 88 class IndexedDBDispatcher; |
89 class InputEventFilter; | 89 class InputEventFilter; |
90 class InputHandlerManager; | 90 class InputHandlerManager; |
91 class MediaStreamCenter; | 91 class MediaStreamCenter; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 RendererBlinkPlatformImpl* blink_platform_impl() const { | 202 RendererBlinkPlatformImpl* blink_platform_impl() const { |
203 DCHECK(blink_platform_impl_); | 203 DCHECK(blink_platform_impl_); |
204 return blink_platform_impl_.get(); | 204 return blink_platform_impl_.get(); |
205 } | 205 } |
206 | 206 |
207 scoped_refptr<base::SingleThreadTaskRunner> | 207 scoped_refptr<base::SingleThreadTaskRunner> |
208 main_thread_compositor_task_runner() const { | 208 main_thread_compositor_task_runner() const { |
209 return main_thread_compositor_task_runner_; | 209 return main_thread_compositor_task_runner_; |
210 } | 210 } |
211 | 211 |
212 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { | 212 CompositorForwardingMessageFilter* compositor_message_filter() const { |
213 return compositor_output_surface_filter_.get(); | 213 return compositor_message_filter_.get(); |
214 } | 214 } |
215 | 215 |
216 InputHandlerManager* input_handler_manager() const { | 216 InputHandlerManager* input_handler_manager() const { |
217 return input_handler_manager_.get(); | 217 return input_handler_manager_.get(); |
218 } | 218 } |
219 | 219 |
220 // Will be NULL if threaded compositing has not been enabled. | 220 // Will be NULL if threaded compositing has not been enabled. |
221 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { | 221 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { |
222 return compositor_message_loop_proxy_; | 222 return compositor_message_loop_proxy_; |
223 } | 223 } |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // Thread for running multimedia operations (e.g., video decoding). | 534 // Thread for running multimedia operations (e.g., video decoding). |
535 scoped_ptr<base::Thread> media_thread_; | 535 scoped_ptr<base::Thread> media_thread_; |
536 | 536 |
537 // Will point to appropriate MessageLoopProxy after initialization, | 537 // Will point to appropriate MessageLoopProxy after initialization, |
538 // regardless of whether |compositor_thread_| is overriden. | 538 // regardless of whether |compositor_thread_| is overriden. |
539 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy_; | 539 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy_; |
540 | 540 |
541 // May be null if unused by the |input_handler_manager_|. | 541 // May be null if unused by the |input_handler_manager_|. |
542 scoped_refptr<InputEventFilter> input_event_filter_; | 542 scoped_refptr<InputEventFilter> input_event_filter_; |
543 scoped_ptr<InputHandlerManager> input_handler_manager_; | 543 scoped_ptr<InputHandlerManager> input_handler_manager_; |
544 scoped_refptr<IPC::ForwardingMessageFilter> compositor_output_surface_filter_; | 544 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; |
545 | 545 |
546 scoped_refptr<webkit::gpu::ContextProviderWebContext> | 546 scoped_refptr<webkit::gpu::ContextProviderWebContext> |
547 shared_main_thread_contexts_; | 547 shared_main_thread_contexts_; |
548 | 548 |
549 ObserverList<RenderProcessObserver> observers_; | 549 ObserverList<RenderProcessObserver> observers_; |
550 | 550 |
551 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; | 551 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; |
552 | 552 |
553 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 553 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
554 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 554 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
(...skipping 21 matching lines...) Expand all Loading... |
576 bool is_one_copy_enabled_; | 576 bool is_one_copy_enabled_; |
577 | 577 |
578 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 578 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
579 | 579 |
580 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 580 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
581 }; | 581 }; |
582 | 582 |
583 } // namespace content | 583 } // namespace content |
584 | 584 |
585 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 585 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |