| 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 <memory> | 10 #include <memory> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void OnBufferPresented(const BufferPresentedParams& params); | 129 void OnBufferPresented(const BufferPresentedParams& params); |
| 130 #endif | 130 #endif |
| 131 void OnEstablishChannel(const EstablishChannelParams& params); | 131 void OnEstablishChannel(const EstablishChannelParams& params); |
| 132 void OnCloseChannel(int32_t client_id); | 132 void OnCloseChannel(int32_t client_id); |
| 133 void OnLoadedShader(const std::string& shader); | 133 void OnLoadedShader(const std::string& shader); |
| 134 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 134 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 135 int client_id, | 135 int client_id, |
| 136 const gpu::SyncToken& sync_token); | 136 const gpu::SyncToken& sync_token); |
| 137 #if defined(OS_ANDROID) | 137 #if defined(OS_ANDROID) |
| 138 void OnWakeUpGpu(); | 138 void OnWakeUpGpu(); |
| 139 void OnDestroyingVideoSurface(int surface_id); |
| 139 #endif | 140 #endif |
| 140 void OnLoseAllContexts(); | 141 void OnLoseAllContexts(); |
| 141 | 142 |
| 142 void BindProcessControlRequest( | 143 void BindProcessControlRequest( |
| 143 mojo::InterfaceRequest<mojom::ProcessControl> request); | 144 mojo::InterfaceRequest<mojom::ProcessControl> request); |
| 144 | 145 |
| 145 gpu::GpuPreferences gpu_preferences_; | 146 gpu::GpuPreferences gpu_preferences_; |
| 146 | 147 |
| 147 // Set this flag to true if a fatal error occurred before we receive the | 148 // Set this flag to true if a fatal error occurred before we receive the |
| 148 // OnInitialize message, in which case we just declare ourselves DOA. | 149 // OnInitialize message, in which case we just declare ourselves DOA. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 179 | 180 |
| 180 // Bindings to the mojom::ProcessControl impl. | 181 // Bindings to the mojom::ProcessControl impl. |
| 181 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 182 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
| 182 | 183 |
| 183 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 } // namespace content | 187 } // namespace content |
| 187 | 188 |
| 188 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |