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