| 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 26 matching lines...) Expand all Loading... |
| 37 namespace blink { | 37 namespace blink { |
| 38 class WebGamepads; | 38 class WebGamepads; |
| 39 class WebGamepadListener; | 39 class WebGamepadListener; |
| 40 class WebGraphicsContext3D; | 40 class WebGraphicsContext3D; |
| 41 class WebMediaStreamCenter; | 41 class WebMediaStreamCenter; |
| 42 class WebMediaStreamCenterClient; | 42 class WebMediaStreamCenterClient; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace base { | 45 namespace base { |
| 46 class MessageLoopProxy; | 46 class MessageLoopProxy; |
| 47 class SingleThreadTaskRunner; |
| 47 class Thread; | 48 class Thread; |
| 48 } | 49 } |
| 49 | 50 |
| 50 namespace cc { | 51 namespace cc { |
| 51 class ContextProvider; | 52 class ContextProvider; |
| 52 } | 53 } |
| 53 | 54 |
| 54 namespace IPC { | 55 namespace IPC { |
| 55 class ForwardingMessageFilter; | 56 class ForwardingMessageFilter; |
| 56 class MessageFilter; | 57 class MessageFilter; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 85 class DomStorageDispatcher; | 86 class DomStorageDispatcher; |
| 86 class EmbeddedWorkerDispatcher; | 87 class EmbeddedWorkerDispatcher; |
| 87 class GamepadSharedMemoryReader; | 88 class GamepadSharedMemoryReader; |
| 88 class GpuChannelHost; | 89 class GpuChannelHost; |
| 89 class IndexedDBDispatcher; | 90 class IndexedDBDispatcher; |
| 90 class InputEventFilter; | 91 class InputEventFilter; |
| 91 class InputHandlerManager; | 92 class InputHandlerManager; |
| 92 class MediaStreamCenter; | 93 class MediaStreamCenter; |
| 93 class MemoryObserver; | 94 class MemoryObserver; |
| 94 class PeerConnectionDependencyFactory; | 95 class PeerConnectionDependencyFactory; |
| 96 class SchedulerProxyTaskRunnerBase; |
| 95 class MidiMessageFilter; | 97 class MidiMessageFilter; |
| 96 class NetInfoDispatcher; | 98 class NetInfoDispatcher; |
| 97 class P2PSocketDispatcher; | 99 class P2PSocketDispatcher; |
| 98 class PeerConnectionTracker; | 100 class PeerConnectionTracker; |
| 99 class RendererDemuxerAndroid; | 101 class RendererDemuxerAndroid; |
| 100 class RendererWebKitPlatformSupportImpl; | 102 class RendererWebKitPlatformSupportImpl; |
| 101 class RenderProcessObserver; | 103 class RenderProcessObserver; |
| 102 class VideoCaptureImplManager; | 104 class VideoCaptureImplManager; |
| 103 class WebGraphicsContext3DCommandBufferImpl; | 105 class WebGraphicsContext3DCommandBufferImpl; |
| 104 class WebRTCIdentityService; | 106 class WebRTCIdentityService; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 195 } |
| 194 void set_layout_test_mode(bool layout_test_mode) { | 196 void set_layout_test_mode(bool layout_test_mode) { |
| 195 layout_test_mode_ = layout_test_mode; | 197 layout_test_mode_ = layout_test_mode; |
| 196 } | 198 } |
| 197 | 199 |
| 198 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { | 200 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { |
| 199 DCHECK(webkit_platform_support_); | 201 DCHECK(webkit_platform_support_); |
| 200 return webkit_platform_support_.get(); | 202 return webkit_platform_support_.get(); |
| 201 } | 203 } |
| 202 | 204 |
| 205 scoped_refptr<base::SingleThreadTaskRunner> MainThreadCompositorTaskRunner() |
| 206 const; |
| 207 |
| 203 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { | 208 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { |
| 204 return compositor_output_surface_filter_.get(); | 209 return compositor_output_surface_filter_.get(); |
| 205 } | 210 } |
| 206 | 211 |
| 207 InputHandlerManager* input_handler_manager() const { | 212 InputHandlerManager* input_handler_manager() const { |
| 208 return input_handler_manager_.get(); | 213 return input_handler_manager_.get(); |
| 209 } | 214 } |
| 210 | 215 |
| 211 // Will be NULL if threaded compositing has not been enabled. | 216 // Will be NULL if threaded compositing has not been enabled. |
| 212 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { | 217 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 566 |
| 562 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 567 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 563 | 568 |
| 564 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 569 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
| 565 // multiple threads. Current allocation mechanism for IOSurface | 570 // multiple threads. Current allocation mechanism for IOSurface |
| 566 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 571 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
| 567 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 572 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
| 568 | 573 |
| 569 scoped_ptr<MemoryObserver> memory_observer_; | 574 scoped_ptr<MemoryObserver> memory_observer_; |
| 570 | 575 |
| 576 scoped_refptr<SchedulerProxyTaskRunnerBase> |
| 577 main_thread_compositor_task_runner_; |
| 578 scoped_refptr<SchedulerProxyTaskRunnerBase> main_thread_input_task_runner_; |
| 579 |
| 571 // Compositor settings | 580 // Compositor settings |
| 572 bool is_gpu_rasterization_enabled_; | 581 bool is_gpu_rasterization_enabled_; |
| 573 bool is_gpu_rasterization_forced_; | 582 bool is_gpu_rasterization_forced_; |
| 574 bool is_impl_side_painting_enabled_; | 583 bool is_impl_side_painting_enabled_; |
| 575 bool is_low_res_tiling_enabled_; | 584 bool is_low_res_tiling_enabled_; |
| 576 bool is_lcd_text_enabled_; | 585 bool is_lcd_text_enabled_; |
| 577 bool is_distance_field_text_enabled_; | 586 bool is_distance_field_text_enabled_; |
| 578 bool is_zero_copy_enabled_; | 587 bool is_zero_copy_enabled_; |
| 579 bool is_one_copy_enabled_; | 588 bool is_one_copy_enabled_; |
| 580 | 589 |
| 581 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 590 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
| 582 | 591 |
| 583 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 592 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 584 }; | 593 }; |
| 585 | 594 |
| 586 } // namespace content | 595 } // namespace content |
| 587 | 596 |
| 588 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 597 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |