| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 protected: | 420 protected: |
| 421 virtual void SetResourceDispatchTaskQueue( | 421 virtual void SetResourceDispatchTaskQueue( |
| 422 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 422 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| 423 | 423 |
| 424 private: | 424 private: |
| 425 // ChildThread | 425 // ChildThread |
| 426 bool OnControlMessageReceived(const IPC::Message& msg) override; | 426 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 427 | 427 |
| 428 // GpuChannelHostFactory implementation: | 428 // GpuChannelHostFactory implementation: |
| 429 bool IsMainThread() override; | 429 bool IsMainThread() override; |
| 430 scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() override; | 430 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
| 431 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; | 431 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; |
| 432 CreateCommandBufferResult CreateViewCommandBuffer( | 432 CreateCommandBufferResult CreateViewCommandBuffer( |
| 433 int32 surface_id, | 433 int32 surface_id, |
| 434 const GPUCreateCommandBufferConfig& init_params, | 434 const GPUCreateCommandBufferConfig& init_params, |
| 435 int32 route_id) override; | 435 int32 route_id) override; |
| 436 | 436 |
| 437 void Init(); | 437 void Init(); |
| 438 | 438 |
| 439 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); | 439 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); |
| 440 void OnCreateNewFrameProxy(int routing_id, | 440 void OnCreateNewFrameProxy(int routing_id, |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 647 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 648 }; | 648 }; |
| 649 | 649 |
| 650 #if defined(COMPILER_MSVC) | 650 #if defined(COMPILER_MSVC) |
| 651 #pragma warning(pop) | 651 #pragma warning(pop) |
| 652 #endif | 652 #endif |
| 653 | 653 |
| 654 } // namespace content | 654 } // namespace content |
| 655 | 655 |
| 656 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 656 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |