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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 194 } |
194 void set_layout_test_mode(bool layout_test_mode) { | 195 void set_layout_test_mode(bool layout_test_mode) { |
195 layout_test_mode_ = layout_test_mode; | 196 layout_test_mode_ = layout_test_mode; |
196 } | 197 } |
197 | 198 |
198 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { | 199 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { |
199 DCHECK(webkit_platform_support_); | 200 DCHECK(webkit_platform_support_); |
200 return webkit_platform_support_.get(); | 201 return webkit_platform_support_.get(); |
201 } | 202 } |
202 | 203 |
| 204 scoped_refptr<base::SingleThreadTaskRunner> |
| 205 main_thread_compositor_task_runner() const { |
| 206 return main_thread_compositor_task_runner_; |
| 207 } |
| 208 |
203 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { | 209 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { |
204 return compositor_output_surface_filter_.get(); | 210 return compositor_output_surface_filter_.get(); |
205 } | 211 } |
206 | 212 |
207 InputHandlerManager* input_handler_manager() const { | 213 InputHandlerManager* input_handler_manager() const { |
208 return input_handler_manager_.get(); | 214 return input_handler_manager_.get(); |
209 } | 215 } |
210 | 216 |
211 // Will be NULL if threaded compositing has not been enabled. | 217 // Will be NULL if threaded compositing has not been enabled. |
212 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { | 218 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 | 571 |
566 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 572 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
567 | 573 |
568 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 574 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
569 // multiple threads. Current allocation mechanism for IOSurface | 575 // multiple threads. Current allocation mechanism for IOSurface |
570 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 576 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
571 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 577 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
572 | 578 |
573 scoped_ptr<MemoryObserver> memory_observer_; | 579 scoped_ptr<MemoryObserver> memory_observer_; |
574 | 580 |
| 581 scoped_refptr<base::SingleThreadTaskRunner> |
| 582 main_thread_compositor_task_runner_; |
| 583 scoped_refptr<base::SingleThreadTaskRunner> main_thread_input_task_runner_; |
| 584 |
575 // Compositor settings | 585 // Compositor settings |
576 bool is_gpu_rasterization_enabled_; | 586 bool is_gpu_rasterization_enabled_; |
577 bool is_gpu_rasterization_forced_; | 587 bool is_gpu_rasterization_forced_; |
578 bool is_impl_side_painting_enabled_; | 588 bool is_impl_side_painting_enabled_; |
579 bool is_low_res_tiling_enabled_; | 589 bool is_low_res_tiling_enabled_; |
580 bool is_lcd_text_enabled_; | 590 bool is_lcd_text_enabled_; |
581 bool is_distance_field_text_enabled_; | 591 bool is_distance_field_text_enabled_; |
582 bool is_zero_copy_enabled_; | 592 bool is_zero_copy_enabled_; |
583 bool is_one_copy_enabled_; | 593 bool is_one_copy_enabled_; |
584 | 594 |
585 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 595 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
586 | 596 |
587 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 597 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
588 }; | 598 }; |
589 | 599 |
590 } // namespace content | 600 } // namespace content |
591 | 601 |
592 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 602 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |