Chromium Code Reviews| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 namespace scheduler { | 73 namespace scheduler { |
| 74 class RendererScheduler; | 74 class RendererScheduler; |
| 75 } | 75 } |
| 76 | 76 |
| 77 namespace v8 { | 77 namespace v8 { |
| 78 class Extension; | 78 class Extension; |
| 79 } | 79 } |
| 80 | 80 |
| 81 namespace content { | 81 namespace content { |
| 82 | 82 |
| 83 namespace { | |
| 84 class RasterWorkerPool; | |
| 85 } | |
| 86 | |
| 83 class AppCacheDispatcher; | 87 class AppCacheDispatcher; |
| 84 class AecDumpMessageFilter; | 88 class AecDumpMessageFilter; |
| 85 class AudioInputMessageFilter; | 89 class AudioInputMessageFilter; |
| 86 class AudioMessageFilter; | 90 class AudioMessageFilter; |
| 87 class AudioRendererMixerManager; | 91 class AudioRendererMixerManager; |
| 88 class BrowserPluginManager; | 92 class BrowserPluginManager; |
| 89 class CacheStorageDispatcher; | 93 class CacheStorageDispatcher; |
| 90 class CompositorForwardingMessageFilter; | 94 class CompositorForwardingMessageFilter; |
| 91 class ContextProviderCommandBuffer; | 95 class ContextProviderCommandBuffer; |
| 92 class DBMessageFilter; | 96 class DBMessageFilter; |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 315 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 312 // of the thread on which file operations should be run. Must be called | 316 // of the thread on which file operations should be run. Must be called |
| 313 // on the renderer's main thread. | 317 // on the renderer's main thread. |
| 314 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); | 318 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); |
| 315 | 319 |
| 316 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 320 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 317 // of the thread on which media operations should be run. Must be called | 321 // of the thread on which media operations should be run. Must be called |
| 318 // on the renderer's main thread. | 322 // on the renderer's main thread. |
| 319 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); | 323 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); |
| 320 | 324 |
| 325 // A SequencedTaskRunner instance that runs tasks on the raster worker pool. | |
| 326 scoped_refptr<base::SequencedTaskRunner> GetWorkerSequencedTaskRunner(); | |
|
reveman
2015/06/30 04:47:52
s/scoped_refptr<base::SequencedTaskRunner>/base::S
Daniele Castagna
2015/06/30 15:43:50
Done.
| |
| 327 | |
| 321 // Causes the idle handler to skip sending idle notifications | 328 // Causes the idle handler to skip sending idle notifications |
| 322 // on the two next scheduled calls, so idle notifications are | 329 // on the two next scheduled calls, so idle notifications are |
| 323 // not sent for at least one notification delay. | 330 // not sent for at least one notification delay. |
| 324 void PostponeIdleNotification(); | 331 void PostponeIdleNotification(); |
| 325 | 332 |
| 326 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); | 333 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); |
| 327 | 334 |
| 328 scoped_refptr<cc_blink::ContextProviderWebContext> | 335 scoped_refptr<cc_blink::ContextProviderWebContext> |
| 329 SharedMainThreadContextProvider(); | 336 SharedMainThreadContextProvider(); |
| 330 | 337 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 554 // May be null if overridden by ContentRendererClient. | 561 // May be null if overridden by ContentRendererClient. |
| 555 scoped_ptr<base::Thread> compositor_thread_; | 562 scoped_ptr<base::Thread> compositor_thread_; |
| 556 | 563 |
| 557 // Thread for running multimedia operations (e.g., video decoding). | 564 // Thread for running multimedia operations (e.g., video decoding). |
| 558 scoped_ptr<base::Thread> media_thread_; | 565 scoped_ptr<base::Thread> media_thread_; |
| 559 | 566 |
| 560 // Will point to appropriate task runner after initialization, | 567 // Will point to appropriate task runner after initialization, |
| 561 // regardless of whether |compositor_thread_| is overriden. | 568 // regardless of whether |compositor_thread_| is overriden. |
| 562 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 569 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
| 563 | 570 |
| 564 // Threads used by compositor for rasterization. | 571 // Pool of workers used for raster operations (e.g., tile rasterization). |
| 565 ScopedVector<base::SimpleThread> compositor_raster_threads_; | 572 scoped_refptr<RasterWorkerPool> raster_worker_pool_; |
| 566 | 573 |
| 567 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_; | 574 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_; |
| 568 scoped_refptr<IPC::MessageFilter> input_event_filter_; | 575 scoped_refptr<IPC::MessageFilter> input_event_filter_; |
| 569 scoped_ptr<InputHandlerManager> input_handler_manager_; | 576 scoped_ptr<InputHandlerManager> input_handler_manager_; |
| 570 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; | 577 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; |
| 571 | 578 |
| 572 scoped_refptr<cc_blink::ContextProviderWebContext> | 579 scoped_refptr<cc_blink::ContextProviderWebContext> |
| 573 shared_main_thread_contexts_; | 580 shared_main_thread_contexts_; |
| 574 | 581 |
| 575 base::ObserverList<RenderProcessObserver> observers_; | 582 base::ObserverList<RenderProcessObserver> observers_; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 587 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 594 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
| 588 #endif | 595 #endif |
| 589 | 596 |
| 590 scoped_ptr<MemoryObserver> memory_observer_; | 597 scoped_ptr<MemoryObserver> memory_observer_; |
| 591 | 598 |
| 592 scoped_refptr<base::SingleThreadTaskRunner> | 599 scoped_refptr<base::SingleThreadTaskRunner> |
| 593 main_thread_compositor_task_runner_; | 600 main_thread_compositor_task_runner_; |
| 594 | 601 |
| 595 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; | 602 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; |
| 596 | 603 |
| 597 scoped_ptr<cc::TaskGraphRunner> compositor_task_graph_runner_; | |
| 598 | |
| 599 // Compositor settings. | 604 // Compositor settings. |
| 600 bool is_gpu_rasterization_enabled_; | 605 bool is_gpu_rasterization_enabled_; |
| 601 bool is_gpu_rasterization_forced_; | 606 bool is_gpu_rasterization_forced_; |
| 602 int gpu_rasterization_msaa_sample_count_; | 607 int gpu_rasterization_msaa_sample_count_; |
| 603 bool is_lcd_text_enabled_; | 608 bool is_lcd_text_enabled_; |
| 604 bool is_distance_field_text_enabled_; | 609 bool is_distance_field_text_enabled_; |
| 605 bool is_zero_copy_enabled_; | 610 bool is_zero_copy_enabled_; |
| 606 bool is_one_copy_enabled_; | 611 bool is_one_copy_enabled_; |
| 607 bool is_elastic_overscroll_enabled_; | 612 bool is_elastic_overscroll_enabled_; |
| 608 unsigned use_image_texture_target_; | 613 unsigned use_image_texture_target_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 642 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 647 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 643 }; | 648 }; |
| 644 | 649 |
| 645 #if defined(COMPILER_MSVC) | 650 #if defined(COMPILER_MSVC) |
| 646 #pragma warning(pop) | 651 #pragma warning(pop) |
| 647 #endif | 652 #endif |
| 648 | 653 |
| 649 } // namespace content | 654 } // namespace content |
| 650 | 655 |
| 651 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 656 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |