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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 281 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
284 P2PSocketDispatcher* p2p_socket_dispatcher() { | 282 P2PSocketDispatcher* p2p_socket_dispatcher() { |
285 return p2p_socket_dispatcher_.get(); | 283 return p2p_socket_dispatcher_.get(); |
286 } | 284 } |
287 #endif | 285 #endif |
288 | 286 |
289 VideoCaptureImplManager* video_capture_impl_manager() const { | 287 VideoCaptureImplManager* video_capture_impl_manager() const { |
290 return vc_manager_.get(); | 288 return vc_manager_.get(); |
291 } | 289 } |
292 | 290 |
293 GamepadSharedMemoryReader* gamepad_shared_memory_reader() const { | |
294 return gamepad_shared_memory_reader_.get(); | |
295 } | |
296 | |
297 // Get the GPU channel. Returns NULL if the channel is not established or | 291 // Get the GPU channel. Returns NULL if the channel is not established or |
298 // has been lost. | 292 // has been lost. |
299 GpuChannelHost* GetGpuChannel(); | 293 GpuChannelHost* GetGpuChannel(); |
300 | 294 |
301 // Returns a MessageLoopProxy instance corresponding to the message loop | 295 // Returns a MessageLoopProxy instance corresponding to the message loop |
302 // of the thread on which file operations should be run. Must be called | 296 // of the thread on which file operations should be run. Must be called |
303 // on the renderer's main thread. | 297 // on the renderer's main thread. |
304 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 298 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
305 | 299 |
306 // Returns a MessageLoopProxy instance corresponding to the message loop | 300 // Returns a MessageLoopProxy instance corresponding to the message loop |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 HistogramCustomizer* histogram_customizer() { | 378 HistogramCustomizer* histogram_customizer() { |
385 return &histogram_customizer_; | 379 return &histogram_customizer_; |
386 } | 380 } |
387 | 381 |
388 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 382 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
389 const std::vector<float>& new_touchscreen); | 383 const std::vector<float>& new_touchscreen); |
390 | 384 |
391 // Retrieve current gamepad data. | 385 // Retrieve current gamepad data. |
392 void SampleGamepads(blink::WebGamepads* data); | 386 void SampleGamepads(blink::WebGamepads* data); |
393 | 387 |
394 // Set a listener for gamepad connected/disconnected events. | |
395 // A non-null listener must be set first before calling SampleGamepads. | |
396 void SetGamepadListener(blink::WebGamepadListener* listener); | |
397 | |
398 // Called by a RenderWidget when it is created or destroyed. This | 388 // Called by a RenderWidget when it is created or destroyed. This |
399 // allows the process to know when there are no visible widgets. | 389 // allows the process to know when there are no visible widgets. |
400 void WidgetCreated(); | 390 void WidgetCreated(); |
401 void WidgetDestroyed(); | 391 void WidgetDestroyed(); |
402 void WidgetHidden(); | 392 void WidgetHidden(); |
403 void WidgetRestored(); | 393 void WidgetRestored(); |
404 | 394 |
405 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); | 395 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); |
406 void RemoveEmbeddedWorkerRoute(int32 routing_id); | 396 void RemoveEmbeddedWorkerRoute(int32 routing_id); |
407 | 397 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 553 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
564 | 554 |
565 HistogramCustomizer histogram_customizer_; | 555 HistogramCustomizer histogram_customizer_; |
566 | 556 |
567 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 557 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
568 | 558 |
569 #if defined(ENABLE_WEBRTC) | 559 #if defined(ENABLE_WEBRTC) |
570 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 560 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
571 #endif | 561 #endif |
572 | 562 |
573 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | |
574 | |
575 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 563 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
576 // multiple threads. Current allocation mechanism for IOSurface | 564 // multiple threads. Current allocation mechanism for IOSurface |
577 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 565 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
578 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 566 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
579 | 567 |
580 scoped_ptr<MemoryObserver> memory_observer_; | 568 scoped_ptr<MemoryObserver> memory_observer_; |
581 | 569 |
582 // Compositor settings | 570 // Compositor settings |
583 bool is_gpu_rasterization_enabled_; | 571 bool is_gpu_rasterization_enabled_; |
584 bool is_gpu_rasterization_forced_; | 572 bool is_gpu_rasterization_forced_; |
585 bool is_impl_side_painting_enabled_; | 573 bool is_impl_side_painting_enabled_; |
586 bool is_low_res_tiling_enabled_; | 574 bool is_low_res_tiling_enabled_; |
587 bool is_lcd_text_enabled_; | 575 bool is_lcd_text_enabled_; |
588 bool is_distance_field_text_enabled_; | 576 bool is_distance_field_text_enabled_; |
589 bool is_zero_copy_enabled_; | 577 bool is_zero_copy_enabled_; |
590 bool is_one_copy_enabled_; | 578 bool is_one_copy_enabled_; |
591 | 579 |
592 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
593 | 581 |
594 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
595 }; | 583 }; |
596 | 584 |
597 } // namespace content | 585 } // namespace content |
598 | 586 |
599 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |