| 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 15 matching lines...) Expand all Loading... |
| 26 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 26 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class GrContext; | 29 class GrContext; |
| 30 class SkBitmap; | 30 class SkBitmap; |
| 31 struct ViewMsg_New_Params; | 31 struct ViewMsg_New_Params; |
| 32 struct WorkerProcessMsg_CreateWorker_Params; | 32 struct WorkerProcessMsg_CreateWorker_Params; |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 class WebGamepads; | 35 class WebGamepads; |
| 36 class WebGamepadListener; |
| 36 class WebGraphicsContext3D; | 37 class WebGraphicsContext3D; |
| 37 class WebMediaStreamCenter; | 38 class WebMediaStreamCenter; |
| 38 class WebMediaStreamCenterClient; | 39 class WebMediaStreamCenterClient; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace base { | 42 namespace base { |
| 42 class MessageLoopProxy; | 43 class MessageLoopProxy; |
| 43 class Thread; | 44 class Thread; |
| 44 } | 45 } |
| 45 | 46 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 265 |
| 265 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 266 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 266 P2PSocketDispatcher* p2p_socket_dispatcher() { | 267 P2PSocketDispatcher* p2p_socket_dispatcher() { |
| 267 return p2p_socket_dispatcher_.get(); | 268 return p2p_socket_dispatcher_.get(); |
| 268 } | 269 } |
| 269 | 270 |
| 270 VideoCaptureImplManager* video_capture_impl_manager() const { | 271 VideoCaptureImplManager* video_capture_impl_manager() const { |
| 271 return vc_manager_.get(); | 272 return vc_manager_.get(); |
| 272 } | 273 } |
| 273 | 274 |
| 275 GamepadSharedMemoryReader* gamepad_shared_memory_reader() const { |
| 276 return gamepad_shared_memory_reader_.get(); |
| 277 } |
| 278 |
| 274 // Get the GPU channel. Returns NULL if the channel is not established or | 279 // Get the GPU channel. Returns NULL if the channel is not established or |
| 275 // has been lost. | 280 // has been lost. |
| 276 GpuChannelHost* GetGpuChannel(); | 281 GpuChannelHost* GetGpuChannel(); |
| 277 | 282 |
| 278 // Returns a MessageLoopProxy instance corresponding to the message loop | 283 // Returns a MessageLoopProxy instance corresponding to the message loop |
| 279 // of the thread on which file operations should be run. Must be called | 284 // of the thread on which file operations should be run. Must be called |
| 280 // on the renderer's main thread. | 285 // on the renderer's main thread. |
| 281 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 286 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
| 282 | 287 |
| 283 // Returns a MessageLoopProxy instance corresponding to the message loop | 288 // Returns a MessageLoopProxy instance corresponding to the message loop |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 HistogramCustomizer* histogram_customizer() { | 366 HistogramCustomizer* histogram_customizer() { |
| 362 return &histogram_customizer_; | 367 return &histogram_customizer_; |
| 363 } | 368 } |
| 364 | 369 |
| 365 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 370 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
| 366 const std::vector<float>& new_touchscreen); | 371 const std::vector<float>& new_touchscreen); |
| 367 | 372 |
| 368 // Retrieve current gamepad data. | 373 // Retrieve current gamepad data. |
| 369 void SampleGamepads(blink::WebGamepads* data); | 374 void SampleGamepads(blink::WebGamepads* data); |
| 370 | 375 |
| 376 // Set a listener for gamepad connected/disconnected events. |
| 377 // A non-null listener must be set first before calling SampleGamepads. |
| 378 void SetGamepadListener(blink::WebGamepadListener* listener); |
| 379 |
| 371 // Called by a RenderWidget when it is created or destroyed. This | 380 // Called by a RenderWidget when it is created or destroyed. This |
| 372 // allows the process to know when there are no visible widgets. | 381 // allows the process to know when there are no visible widgets. |
| 373 void WidgetCreated(); | 382 void WidgetCreated(); |
| 374 void WidgetDestroyed(); | 383 void WidgetDestroyed(); |
| 375 void WidgetHidden(); | 384 void WidgetHidden(); |
| 376 void WidgetRestored(); | 385 void WidgetRestored(); |
| 377 | 386 |
| 378 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); | 387 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); |
| 379 void RemoveEmbeddedWorkerRoute(int32 routing_id); | 388 void RemoveEmbeddedWorkerRoute(int32 routing_id); |
| 380 | 389 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 534 |
| 526 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 535 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
| 527 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 536 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
| 528 | 537 |
| 529 HistogramCustomizer histogram_customizer_; | 538 HistogramCustomizer histogram_customizer_; |
| 530 | 539 |
| 531 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 540 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 532 | 541 |
| 533 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 542 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
| 534 | 543 |
| 535 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 544 scoped_refptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 536 | 545 |
| 537 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 546 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
| 538 // multiple threads. Current allocation mechanism for IOSurface | 547 // multiple threads. Current allocation mechanism for IOSurface |
| 539 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 548 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
| 540 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 549 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
| 541 | 550 |
| 542 // Compositor settings | 551 // Compositor settings |
| 543 bool is_gpu_rasterization_enabled_; | 552 bool is_gpu_rasterization_enabled_; |
| 544 bool is_gpu_rasterization_forced_; | 553 bool is_gpu_rasterization_forced_; |
| 545 bool is_impl_side_painting_enabled_; | 554 bool is_impl_side_painting_enabled_; |
| 546 bool is_low_res_tiling_enabled_; | 555 bool is_low_res_tiling_enabled_; |
| 547 bool is_lcd_text_enabled_; | 556 bool is_lcd_text_enabled_; |
| 548 bool is_zero_copy_enabled_; | 557 bool is_zero_copy_enabled_; |
| 549 bool is_one_copy_enabled_; | 558 bool is_one_copy_enabled_; |
| 550 | 559 |
| 551 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 560 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 552 }; | 561 }; |
| 553 | 562 |
| 554 } // namespace content | 563 } // namespace content |
| 555 | 564 |
| 556 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 565 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |