| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 RenderThreadImpl(const InProcessChildThreadParams& params, | 426 RenderThreadImpl(const InProcessChildThreadParams& params, |
| 427 scoped_ptr<scheduler::RendererScheduler> scheduler); | 427 scoped_ptr<scheduler::RendererScheduler> scheduler); |
| 428 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, | 428 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, |
| 429 scoped_ptr<scheduler::RendererScheduler> scheduler); | 429 scoped_ptr<scheduler::RendererScheduler> scheduler); |
| 430 virtual void SetResourceDispatchTaskQueue( | 430 virtual void SetResourceDispatchTaskQueue( |
| 431 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 431 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| 432 | 432 |
| 433 private: | 433 private: |
| 434 // ChildThread | 434 // ChildThread |
| 435 bool OnControlMessageReceived(const IPC::Message& msg) override; | 435 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 436 void OnProcessBackgrounded(bool backgrounded) override; |
| 436 | 437 |
| 437 // GpuChannelHostFactory implementation: | 438 // GpuChannelHostFactory implementation: |
| 438 bool IsMainThread() override; | 439 bool IsMainThread() override; |
| 439 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 440 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 440 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; | 441 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; |
| 441 CreateCommandBufferResult CreateViewCommandBuffer( | 442 CreateCommandBufferResult CreateViewCommandBuffer( |
| 442 int32 surface_id, | 443 int32 surface_id, |
| 443 const GPUCreateCommandBufferConfig& init_params, | 444 const GPUCreateCommandBufferConfig& init_params, |
| 444 int32 route_id) override; | 445 int32 route_id) override; |
| 445 | 446 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 657 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 657 }; | 658 }; |
| 658 | 659 |
| 659 #if defined(COMPILER_MSVC) | 660 #if defined(COMPILER_MSVC) |
| 660 #pragma warning(pop) | 661 #pragma warning(pop) |
| 661 #endif | 662 #endif |
| 662 | 663 |
| 663 } // namespace content | 664 } // namespace content |
| 664 | 665 |
| 665 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 666 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |