| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void OnCloseChannel(int32_t client_id); | 136 void OnCloseChannel(int32_t client_id); |
| 137 void OnLoadedShader(const std::string& shader); | 137 void OnLoadedShader(const std::string& shader); |
| 138 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 138 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 139 int client_id, | 139 int client_id, |
| 140 const gpu::SyncToken& sync_token); | 140 const gpu::SyncToken& sync_token); |
| 141 void OnUpdateValueState(int client_id, | 141 void OnUpdateValueState(int client_id, |
| 142 unsigned int target, | 142 unsigned int target, |
| 143 const gpu::ValueState& state); | 143 const gpu::ValueState& state); |
| 144 #if defined(OS_ANDROID) | 144 #if defined(OS_ANDROID) |
| 145 void OnWakeUpGpu(); | 145 void OnWakeUpGpu(); |
| 146 void OnDestroyingVideoSurface(int surface_id); |
| 146 #endif | 147 #endif |
| 147 void OnLoseAllContexts(); | 148 void OnLoseAllContexts(); |
| 148 | 149 |
| 149 void BindProcessControlRequest( | 150 void BindProcessControlRequest( |
| 150 mojo::InterfaceRequest<mojom::ProcessControl> request); | 151 mojo::InterfaceRequest<mojom::ProcessControl> request); |
| 151 | 152 |
| 152 gpu::GpuPreferences gpu_preferences_; | 153 gpu::GpuPreferences gpu_preferences_; |
| 153 | 154 |
| 154 // Set this flag to true if a fatal error occurred before we receive the | 155 // Set this flag to true if a fatal error occurred before we receive the |
| 155 // OnInitialize message, in which case we just declare ourselves DOA. | 156 // OnInitialize message, in which case we just declare ourselves DOA. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 186 | 187 |
| 187 // Bindings to the mojom::ProcessControl impl. | 188 // Bindings to the mojom::ProcessControl impl. |
| 188 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 189 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
| 189 | 190 |
| 190 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 191 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 } // namespace content | 194 } // namespace content |
| 194 | 195 |
| 195 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 196 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |