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