| 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_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const DeferredMessages& deferred_messages, | 48 const DeferredMessages& deferred_messages, |
| 49 GpuMemoryBufferFactory* gpu_memory_buffer_factory, | 49 GpuMemoryBufferFactory* gpu_memory_buffer_factory, |
| 50 gpu::SyncPointManager* sync_point_manager); | 50 gpu::SyncPointManager* sync_point_manager); |
| 51 | 51 |
| 52 GpuChildThread(const InProcessChildThreadParams& params, | 52 GpuChildThread(const InProcessChildThreadParams& params, |
| 53 GpuMemoryBufferFactory* gpu_memory_buffer_factory, | 53 GpuMemoryBufferFactory* gpu_memory_buffer_factory, |
| 54 gpu::SyncPointManager* sync_point_manager); | 54 gpu::SyncPointManager* sync_point_manager); |
| 55 | 55 |
| 56 ~GpuChildThread() override; | 56 ~GpuChildThread() override; |
| 57 | 57 |
| 58 static gfx::GpuMemoryBufferType GetGpuMemoryBufferFactoryType(); | |
| 59 | |
| 60 void Shutdown() override; | 58 void Shutdown() override; |
| 61 | 59 |
| 62 void Init(const base::Time& process_start_time); | 60 void Init(const base::Time& process_start_time); |
| 63 void StopWatchdog(); | 61 void StopWatchdog(); |
| 64 | 62 |
| 65 // ChildThread overrides. | 63 // ChildThread overrides. |
| 66 bool Send(IPC::Message* msg) override; | 64 bool Send(IPC::Message* msg) override; |
| 67 bool OnControlMessageReceived(const IPC::Message& msg) override; | 65 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 68 bool OnMessageReceived(const IPC::Message& msg) override; | 66 bool OnMessageReceived(const IPC::Message& msg) override; |
| 69 | 67 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 110 |
| 113 // The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. | 111 // The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
| 114 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; | 112 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
| 115 | 113 |
| 116 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 114 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 117 }; | 115 }; |
| 118 | 116 |
| 119 } // namespace content | 117 } // namespace content |
| 120 | 118 |
| 121 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 119 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |