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