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 | 420 |
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 scoped_refptr<base::SingleThreadTaskRunner> GetMainTaskRunner() 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(int routing_id, | 440 void OnCreateNewFrame(int routing_id, |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 653 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
655 }; | 654 }; |
656 | 655 |
657 #if defined(COMPILER_MSVC) | 656 #if defined(COMPILER_MSVC) |
658 #pragma warning(pop) | 657 #pragma warning(pop) |
659 #endif | 658 #endif |
660 | 659 |
661 } // namespace content | 660 } // namespace content |
662 | 661 |
663 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 662 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |