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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 class MessageFilter; | 65 class MessageFilter; |
66 } | 66 } |
67 | 67 |
68 namespace media { | 68 namespace media { |
69 class AudioHardwareConfig; | 69 class AudioHardwareConfig; |
70 class GpuVideoAcceleratorFactories; | 70 class GpuVideoAcceleratorFactories; |
71 } | 71 } |
72 | 72 |
73 namespace scheduler { | 73 namespace scheduler { |
74 class RendererScheduler; | 74 class RendererScheduler; |
| 75 class WebThreadBase; |
75 } | 76 } |
76 | 77 |
77 namespace v8 { | 78 namespace v8 { |
78 class Extension; | 79 class Extension; |
79 } | 80 } |
80 | 81 |
81 namespace content { | 82 namespace content { |
82 | 83 |
83 class AppCacheDispatcher; | 84 class AppCacheDispatcher; |
84 class AecDumpMessageFilter; | 85 class AecDumpMessageFilter; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 bool IsMainThread() override; | 458 bool IsMainThread() override; |
458 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 459 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
459 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; | 460 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; |
460 CreateCommandBufferResult CreateViewCommandBuffer( | 461 CreateCommandBufferResult CreateViewCommandBuffer( |
461 int32 surface_id, | 462 int32 surface_id, |
462 const GPUCreateCommandBufferConfig& init_params, | 463 const GPUCreateCommandBufferConfig& init_params, |
463 int32 route_id) override; | 464 int32 route_id) override; |
464 | 465 |
465 void Init(); | 466 void Init(); |
466 | 467 |
| 468 void InitializeCompositorThread(); |
| 469 |
467 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); | 470 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); |
468 void OnCreateNewFrameProxy(int routing_id, | 471 void OnCreateNewFrameProxy(int routing_id, |
469 int render_view_routing_id, | 472 int render_view_routing_id, |
470 int opener_routing_id, | 473 int opener_routing_id, |
471 int parent_routing_id, | 474 int parent_routing_id, |
472 const FrameReplicationState& replicated_state); | 475 const FrameReplicationState& replicated_state); |
473 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 476 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
474 const std::string& host, | 477 const std::string& host, |
475 double zoom_level); | 478 double zoom_level); |
476 void OnCreateNewView(const ViewMsg_New_Params& params); | 479 void OnCreateNewView(const ViewMsg_New_Params& params); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 584 |
582 // The message loop of the renderer main thread. | 585 // The message loop of the renderer main thread. |
583 // This message loop should be destructed before the RenderThreadImpl | 586 // This message loop should be destructed before the RenderThreadImpl |
584 // shuts down Blink. | 587 // shuts down Blink. |
585 scoped_ptr<base::MessageLoop> main_message_loop_; | 588 scoped_ptr<base::MessageLoop> main_message_loop_; |
586 | 589 |
587 // A lazily initiated thread on which file operations are run. | 590 // A lazily initiated thread on which file operations are run. |
588 scoped_ptr<base::Thread> file_thread_; | 591 scoped_ptr<base::Thread> file_thread_; |
589 | 592 |
590 // May be null if overridden by ContentRendererClient. | 593 // May be null if overridden by ContentRendererClient. |
591 scoped_ptr<base::Thread> compositor_thread_; | 594 scoped_ptr<scheduler::WebThreadBase> compositor_thread_; |
592 | 595 |
593 // Utility class to provide GPU functionalities to media. | 596 // Utility class to provide GPU functionalities to media. |
594 scoped_ptr<content::RendererGpuVideoAcceleratorFactories> gpu_factories_; | 597 scoped_ptr<content::RendererGpuVideoAcceleratorFactories> gpu_factories_; |
595 | 598 |
596 // Thread for running multimedia operations (e.g., video decoding). | 599 // Thread for running multimedia operations (e.g., video decoding). |
597 scoped_ptr<base::Thread> media_thread_; | 600 scoped_ptr<base::Thread> media_thread_; |
598 | 601 |
599 // Will point to appropriate task runner after initialization, | 602 // Will point to appropriate task runner after initialization, |
600 // regardless of whether |compositor_thread_| is overriden. | 603 // regardless of whether |compositor_thread_| is overriden. |
601 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 604 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 658 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
656 }; | 659 }; |
657 | 660 |
658 #if defined(COMPILER_MSVC) | 661 #if defined(COMPILER_MSVC) |
659 #pragma warning(pop) | 662 #pragma warning(pop) |
660 #endif | 663 #endif |
661 | 664 |
662 } // namespace content | 665 } // namespace content |
663 | 666 |
664 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 667 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |