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 18 matching lines...) Expand all Loading... |
29 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 29 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
30 #endif | 30 #endif |
31 | 31 |
32 class GrContext; | 32 class GrContext; |
33 class SkBitmap; | 33 class SkBitmap; |
34 struct ViewMsg_New_Params; | 34 struct ViewMsg_New_Params; |
35 struct WorkerProcessMsg_CreateWorker_Params; | 35 struct WorkerProcessMsg_CreateWorker_Params; |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 class WebGamepads; | 38 class WebGamepads; |
39 class WebGamepadListener; | |
40 class WebGraphicsContext3D; | 39 class WebGraphicsContext3D; |
41 class WebMediaStreamCenter; | 40 class WebMediaStreamCenter; |
42 class WebMediaStreamCenterClient; | 41 class WebMediaStreamCenterClient; |
43 } | 42 } |
44 | 43 |
45 namespace base { | 44 namespace base { |
46 class MessageLoopProxy; | 45 class MessageLoopProxy; |
47 class Thread; | 46 class Thread; |
48 } | 47 } |
49 | 48 |
(...skipping 27 matching lines...) Expand all Loading... |
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; |
82 class ContextProviderCommandBuffer; | 81 class ContextProviderCommandBuffer; |
83 class DBMessageFilter; | 82 class DBMessageFilter; |
84 class DevToolsAgentFilter; | 83 class DevToolsAgentFilter; |
85 class DomStorageDispatcher; | 84 class DomStorageDispatcher; |
86 class EmbeddedWorkerDispatcher; | 85 class EmbeddedWorkerDispatcher; |
87 class GamepadSharedMemoryReader; | |
88 class GpuChannelHost; | 86 class GpuChannelHost; |
89 class IndexedDBDispatcher; | 87 class IndexedDBDispatcher; |
90 class InputEventFilter; | 88 class InputEventFilter; |
91 class InputHandlerManager; | 89 class InputHandlerManager; |
92 class MediaStreamCenter; | 90 class MediaStreamCenter; |
93 class MemoryObserver; | 91 class MemoryObserver; |
94 class PeerConnectionDependencyFactory; | 92 class PeerConnectionDependencyFactory; |
95 class MidiMessageFilter; | 93 class MidiMessageFilter; |
96 class NetInfoDispatcher; | 94 class NetInfoDispatcher; |
97 class P2PSocketDispatcher; | 95 class P2PSocketDispatcher; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 279 |
282 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 280 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
283 P2PSocketDispatcher* p2p_socket_dispatcher() { | 281 P2PSocketDispatcher* p2p_socket_dispatcher() { |
284 return p2p_socket_dispatcher_.get(); | 282 return p2p_socket_dispatcher_.get(); |
285 } | 283 } |
286 | 284 |
287 VideoCaptureImplManager* video_capture_impl_manager() const { | 285 VideoCaptureImplManager* video_capture_impl_manager() const { |
288 return vc_manager_.get(); | 286 return vc_manager_.get(); |
289 } | 287 } |
290 | 288 |
291 GamepadSharedMemoryReader* gamepad_shared_memory_reader() const { | |
292 return gamepad_shared_memory_reader_.get(); | |
293 } | |
294 | |
295 // Get the GPU channel. Returns NULL if the channel is not established or | 289 // Get the GPU channel. Returns NULL if the channel is not established or |
296 // has been lost. | 290 // has been lost. |
297 GpuChannelHost* GetGpuChannel(); | 291 GpuChannelHost* GetGpuChannel(); |
298 | 292 |
299 // Returns a MessageLoopProxy instance corresponding to the message loop | 293 // Returns a MessageLoopProxy instance corresponding to the message loop |
300 // of the thread on which file operations should be run. Must be called | 294 // of the thread on which file operations should be run. Must be called |
301 // on the renderer's main thread. | 295 // on the renderer's main thread. |
302 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 296 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
303 | 297 |
304 // Returns a MessageLoopProxy instance corresponding to the message loop | 298 // Returns a MessageLoopProxy instance corresponding to the message loop |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 HistogramCustomizer* histogram_customizer() { | 376 HistogramCustomizer* histogram_customizer() { |
383 return &histogram_customizer_; | 377 return &histogram_customizer_; |
384 } | 378 } |
385 | 379 |
386 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 380 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
387 const std::vector<float>& new_touchscreen); | 381 const std::vector<float>& new_touchscreen); |
388 | 382 |
389 // Retrieve current gamepad data. | 383 // Retrieve current gamepad data. |
390 void SampleGamepads(blink::WebGamepads* data); | 384 void SampleGamepads(blink::WebGamepads* data); |
391 | 385 |
392 // Set a listener for gamepad connected/disconnected events. | |
393 // A non-null listener must be set first before calling SampleGamepads. | |
394 void SetGamepadListener(blink::WebGamepadListener* listener); | |
395 | |
396 // Called by a RenderWidget when it is created or destroyed. This | 386 // Called by a RenderWidget when it is created or destroyed. This |
397 // allows the process to know when there are no visible widgets. | 387 // allows the process to know when there are no visible widgets. |
398 void WidgetCreated(); | 388 void WidgetCreated(); |
399 void WidgetDestroyed(); | 389 void WidgetDestroyed(); |
400 void WidgetHidden(); | 390 void WidgetHidden(); |
401 void WidgetRestored(); | 391 void WidgetRestored(); |
402 | 392 |
403 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); | 393 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); |
404 void RemoveEmbeddedWorkerRoute(int32 routing_id); | 394 void RemoveEmbeddedWorkerRoute(int32 routing_id); |
405 | 395 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 546 |
557 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 547 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
558 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 548 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
559 | 549 |
560 HistogramCustomizer histogram_customizer_; | 550 HistogramCustomizer histogram_customizer_; |
561 | 551 |
562 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 552 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
563 | 553 |
564 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 554 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
565 | 555 |
566 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | |
567 | |
568 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 556 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
569 // multiple threads. Current allocation mechanism for IOSurface | 557 // multiple threads. Current allocation mechanism for IOSurface |
570 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 558 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
571 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 559 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
572 | 560 |
573 scoped_ptr<MemoryObserver> memory_observer_; | 561 scoped_ptr<MemoryObserver> memory_observer_; |
574 | 562 |
575 // Compositor settings | 563 // Compositor settings |
576 bool is_gpu_rasterization_enabled_; | 564 bool is_gpu_rasterization_enabled_; |
577 bool is_gpu_rasterization_forced_; | 565 bool is_gpu_rasterization_forced_; |
578 bool is_impl_side_painting_enabled_; | 566 bool is_impl_side_painting_enabled_; |
579 bool is_low_res_tiling_enabled_; | 567 bool is_low_res_tiling_enabled_; |
580 bool is_lcd_text_enabled_; | 568 bool is_lcd_text_enabled_; |
581 bool is_distance_field_text_enabled_; | 569 bool is_distance_field_text_enabled_; |
582 bool is_zero_copy_enabled_; | 570 bool is_zero_copy_enabled_; |
583 bool is_one_copy_enabled_; | 571 bool is_one_copy_enabled_; |
584 | 572 |
585 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 573 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
586 | 574 |
587 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 575 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
588 }; | 576 }; |
589 | 577 |
590 } // namespace content | 578 } // namespace content |
591 | 579 |
592 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 580 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |