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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 // May be null if overridden by ContentRendererClient. | 557 // May be null if overridden by ContentRendererClient. |
558 scoped_ptr<base::Thread> compositor_thread_; | 558 scoped_ptr<base::Thread> compositor_thread_; |
559 | 559 |
560 // Thread for running multimedia operations (e.g., video decoding). | 560 // Thread for running multimedia operations (e.g., video decoding). |
561 scoped_ptr<base::Thread> media_thread_; | 561 scoped_ptr<base::Thread> media_thread_; |
562 | 562 |
563 // Will point to appropriate task runner after initialization, | 563 // Will point to appropriate task runner after initialization, |
564 // regardless of whether |compositor_thread_| is overriden. | 564 // regardless of whether |compositor_thread_| is overriden. |
565 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 565 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
566 | 566 |
567 // Threads used by compositor for rasterization. | 567 // Threads for running background tasks (e.g. rasterization). |
568 ScopedVector<base::SimpleThread> compositor_raster_threads_; | 568 ScopedVector<base::SimpleThread> worker_threads_; |
569 | 569 |
570 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_; | 570 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_; |
571 scoped_refptr<IPC::MessageFilter> input_event_filter_; | 571 scoped_refptr<IPC::MessageFilter> input_event_filter_; |
572 scoped_ptr<InputHandlerManager> input_handler_manager_; | 572 scoped_ptr<InputHandlerManager> input_handler_manager_; |
573 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; | 573 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; |
574 | 574 |
575 scoped_refptr<cc_blink::ContextProviderWebContext> | 575 scoped_refptr<cc_blink::ContextProviderWebContext> |
576 shared_main_thread_contexts_; | 576 shared_main_thread_contexts_; |
577 | 577 |
578 base::ObserverList<RenderProcessObserver> observers_; | 578 base::ObserverList<RenderProcessObserver> observers_; |
(...skipping 11 matching lines...) Expand all Loading... |
590 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 590 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
591 #endif | 591 #endif |
592 | 592 |
593 scoped_ptr<MemoryObserver> memory_observer_; | 593 scoped_ptr<MemoryObserver> memory_observer_; |
594 | 594 |
595 scoped_refptr<base::SingleThreadTaskRunner> | 595 scoped_refptr<base::SingleThreadTaskRunner> |
596 main_thread_compositor_task_runner_; | 596 main_thread_compositor_task_runner_; |
597 | 597 |
598 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; | 598 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; |
599 | 599 |
600 scoped_ptr<cc::TaskGraphRunner> compositor_task_graph_runner_; | 600 scoped_ptr<cc::TaskGraphRunner> task_graph_runner_; |
601 | 601 |
602 // Compositor settings. | 602 // Compositor settings. |
603 bool is_gpu_rasterization_enabled_; | 603 bool is_gpu_rasterization_enabled_; |
604 bool is_gpu_rasterization_forced_; | 604 bool is_gpu_rasterization_forced_; |
605 int gpu_rasterization_msaa_sample_count_; | 605 int gpu_rasterization_msaa_sample_count_; |
606 bool is_lcd_text_enabled_; | 606 bool is_lcd_text_enabled_; |
607 bool is_distance_field_text_enabled_; | 607 bool is_distance_field_text_enabled_; |
608 bool is_zero_copy_enabled_; | 608 bool is_zero_copy_enabled_; |
609 bool is_one_copy_enabled_; | 609 bool is_one_copy_enabled_; |
610 bool is_elastic_overscroll_enabled_; | 610 bool is_elastic_overscroll_enabled_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 645 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
646 }; | 646 }; |
647 | 647 |
648 #if defined(COMPILER_MSVC) | 648 #if defined(COMPILER_MSVC) |
649 #pragma warning(pop) | 649 #pragma warning(pop) |
650 #endif | 650 #endif |
651 | 651 |
652 } // namespace content | 652 } // namespace content |
653 | 653 |
654 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 654 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |