| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void OnClean(); | 118 void OnClean(); |
| 119 void OnCrash(); | 119 void OnCrash(); |
| 120 void OnHang(); | 120 void OnHang(); |
| 121 #if defined(OS_ANDROID) | 121 #if defined(OS_ANDROID) |
| 122 void OnJavaCrash(); | 122 void OnJavaCrash(); |
| 123 #endif | 123 #endif |
| 124 void OnGpuSwitched(); | 124 void OnGpuSwitched(); |
| 125 | 125 |
| 126 void OnCloseChannel(int32_t client_id); | 126 void OnCloseChannel(int32_t client_id); |
| 127 void OnLoadedShader(const std::string& shader); | 127 void OnLoadedShader(const std::string& shader); |
| 128 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | |
| 129 int client_id, | |
| 130 const gpu::SyncToken& sync_token); | |
| 131 #if defined(OS_ANDROID) | 128 #if defined(OS_ANDROID) |
| 132 void OnWakeUpGpu(); | 129 void OnWakeUpGpu(); |
| 133 void OnDestroyingVideoSurface(int surface_id); | 130 void OnDestroyingVideoSurface(int surface_id); |
| 134 #endif | 131 #endif |
| 135 | 132 |
| 136 void BindServiceFactoryRequest( | 133 void BindServiceFactoryRequest( |
| 137 service_manager::mojom::ServiceFactoryRequest request); | 134 service_manager::mojom::ServiceFactoryRequest request); |
| 138 | 135 |
| 139 gpu::GpuChannelManager* gpu_channel_manager() { | 136 gpu::GpuChannelManager* gpu_channel_manager() { |
| 140 return gpu_service_->gpu_channel_manager(); | 137 return gpu_service_->gpu_channel_manager(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 169 AssociatedInterfaceRegistryImpl associated_interfaces_; | 166 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 170 std::unique_ptr<ui::GpuService> gpu_service_; | 167 std::unique_ptr<ui::GpuService> gpu_service_; |
| 171 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 168 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
| 172 | 169 |
| 173 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 170 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 174 }; | 171 }; |
| 175 | 172 |
| 176 } // namespace content | 173 } // namespace content |
| 177 | 174 |
| 178 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 175 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |