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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Message handlers. | 110 // Message handlers. |
111 void OnFinalize(); | 111 void OnFinalize(); |
112 void OnCollectGraphicsInfo(); | 112 void OnCollectGraphicsInfo(); |
113 void OnGetVideoMemoryUsageStats(); | 113 void OnGetVideoMemoryUsageStats(); |
114 void OnSetVideoMemoryWindowCount(uint32_t window_count); | 114 void OnSetVideoMemoryWindowCount(uint32_t window_count); |
115 | 115 |
116 void OnClean(); | 116 void OnClean(); |
117 void OnCrash(); | 117 void OnCrash(); |
118 void OnHang(); | 118 void OnHang(); |
| 119 #if defined(OS_ANDROID) |
| 120 void OnJavaCrash(); |
| 121 #endif |
119 void OnGpuSwitched(); | 122 void OnGpuSwitched(); |
120 | 123 |
121 void OnEstablishChannel(const EstablishChannelParams& params); | 124 void OnEstablishChannel(const EstablishChannelParams& params); |
122 void OnCloseChannel(int32_t client_id); | 125 void OnCloseChannel(int32_t client_id); |
123 void OnLoadedShader(const std::string& shader); | 126 void OnLoadedShader(const std::string& shader); |
124 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 127 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
125 int client_id, | 128 int client_id, |
126 const gpu::SyncToken& sync_token); | 129 const gpu::SyncToken& sync_token); |
127 #if defined(OS_ANDROID) | 130 #if defined(OS_ANDROID) |
128 void OnWakeUpGpu(); | 131 void OnWakeUpGpu(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 AssociatedInterfaceRegistryImpl associated_interfaces_; | 168 AssociatedInterfaceRegistryImpl associated_interfaces_; |
166 std::unique_ptr<ui::GpuService> gpu_service_; | 169 std::unique_ptr<ui::GpuService> gpu_service_; |
167 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 170 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
168 | 171 |
169 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 172 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
170 }; | 173 }; |
171 | 174 |
172 } // namespace content | 175 } // namespace content |
173 | 176 |
174 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 177 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |