Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 363383002: Forward input tasks to the Blink scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 570
565 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 571 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
566 572
567 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from 573 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
568 // multiple threads. Current allocation mechanism for IOSurface 574 // multiple threads. Current allocation mechanism for IOSurface
569 // backed GpuMemoryBuffers prevent this. crbug.com/325045 575 // backed GpuMemoryBuffers prevent this. crbug.com/325045
570 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 576 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
571 577
572 scoped_ptr<MemoryObserver> memory_observer_; 578 scoped_ptr<MemoryObserver> memory_observer_;
573 579
580 scoped_refptr<base::SingleThreadTaskRunner>
581 main_thread_compositor_task_runner_;
582 scoped_refptr<base::SingleThreadTaskRunner> main_thread_input_task_runner_;
583
574 // Compositor settings 584 // Compositor settings
575 bool is_gpu_rasterization_enabled_; 585 bool is_gpu_rasterization_enabled_;
576 bool is_gpu_rasterization_forced_; 586 bool is_gpu_rasterization_forced_;
577 bool is_impl_side_painting_enabled_; 587 bool is_impl_side_painting_enabled_;
578 bool is_low_res_tiling_enabled_; 588 bool is_low_res_tiling_enabled_;
579 bool is_lcd_text_enabled_; 589 bool is_lcd_text_enabled_;
580 bool is_distance_field_text_enabled_; 590 bool is_distance_field_text_enabled_;
581 bool is_zero_copy_enabled_; 591 bool is_zero_copy_enabled_;
582 bool is_one_copy_enabled_; 592 bool is_one_copy_enabled_;
583 593
584 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 594 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
585 595
586 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 596 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
587 }; 597 };
588 598
589 } // namespace content 599 } // namespace content
590 600
591 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 601 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698