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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 class WebGamepads; | 38 class WebGamepads; |
39 class WebGraphicsContext3D; | 39 class WebGraphicsContext3D; |
40 class WebMediaStreamCenter; | 40 class WebMediaStreamCenter; |
41 class WebMediaStreamCenterClient; | 41 class WebMediaStreamCenterClient; |
42 } | 42 } |
43 | 43 |
44 namespace base { | 44 namespace base { |
45 class MessageLoopProxy; | 45 class MessageLoopProxy; |
| 46 class SingleThreadTaskRunner; |
46 class Thread; | 47 class Thread; |
47 } | 48 } |
48 | 49 |
49 namespace cc { | 50 namespace cc { |
50 class ContextProvider; | 51 class ContextProvider; |
51 } | 52 } |
52 | 53 |
53 namespace IPC { | 54 namespace IPC { |
54 class ForwardingMessageFilter; | 55 class ForwardingMessageFilter; |
55 class MessageFilter; | 56 class MessageFilter; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 192 } |
192 void set_layout_test_mode(bool layout_test_mode) { | 193 void set_layout_test_mode(bool layout_test_mode) { |
193 layout_test_mode_ = layout_test_mode; | 194 layout_test_mode_ = layout_test_mode; |
194 } | 195 } |
195 | 196 |
196 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { | 197 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { |
197 DCHECK(webkit_platform_support_); | 198 DCHECK(webkit_platform_support_); |
198 return webkit_platform_support_.get(); | 199 return webkit_platform_support_.get(); |
199 } | 200 } |
200 | 201 |
| 202 scoped_refptr<base::SingleThreadTaskRunner> |
| 203 main_thread_compositor_task_runner() const { |
| 204 return main_thread_compositor_task_runner_; |
| 205 } |
| 206 |
201 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { | 207 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { |
202 return compositor_output_surface_filter_.get(); | 208 return compositor_output_surface_filter_.get(); |
203 } | 209 } |
204 | 210 |
205 InputHandlerManager* input_handler_manager() const { | 211 InputHandlerManager* input_handler_manager() const { |
206 return input_handler_manager_.get(); | 212 return input_handler_manager_.get(); |
207 } | 213 } |
208 | 214 |
209 // Will be NULL if threaded compositing has not been enabled. | 215 // Will be NULL if threaded compositing has not been enabled. |
210 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { | 216 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 566 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
561 #endif | 567 #endif |
562 | 568 |
563 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 569 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
564 // multiple threads. Current allocation mechanism for IOSurface | 570 // multiple threads. Current allocation mechanism for IOSurface |
565 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 571 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
566 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 572 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
567 | 573 |
568 scoped_ptr<MemoryObserver> memory_observer_; | 574 scoped_ptr<MemoryObserver> memory_observer_; |
569 | 575 |
| 576 scoped_refptr<base::SingleThreadTaskRunner> |
| 577 main_thread_compositor_task_runner_; |
| 578 scoped_refptr<base::SingleThreadTaskRunner> main_thread_input_task_runner_; |
| 579 |
570 // Compositor settings | 580 // Compositor settings |
571 bool is_gpu_rasterization_enabled_; | 581 bool is_gpu_rasterization_enabled_; |
572 bool is_gpu_rasterization_forced_; | 582 bool is_gpu_rasterization_forced_; |
573 bool is_impl_side_painting_enabled_; | 583 bool is_impl_side_painting_enabled_; |
574 bool is_low_res_tiling_enabled_; | 584 bool is_low_res_tiling_enabled_; |
575 bool is_lcd_text_enabled_; | 585 bool is_lcd_text_enabled_; |
576 bool is_distance_field_text_enabled_; | 586 bool is_distance_field_text_enabled_; |
577 bool is_zero_copy_enabled_; | 587 bool is_zero_copy_enabled_; |
578 bool is_one_copy_enabled_; | 588 bool is_one_copy_enabled_; |
579 | 589 |
580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 590 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
581 | 591 |
582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 592 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
583 }; | 593 }; |
584 | 594 |
585 } // namespace content | 595 } // namespace content |
586 | 596 |
587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 597 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |