| 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_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 const std::string& shader) override; | 200 const std::string& shader) override; |
| 201 void RecordLogMessage(int32_t severity, | 201 void RecordLogMessage(int32_t severity, |
| 202 const std::string& header, | 202 const std::string& header, |
| 203 const std::string& message) override; | 203 const std::string& message) override; |
| 204 | 204 |
| 205 void OnChannelEstablished(int client_id, | 205 void OnChannelEstablished(int client_id, |
| 206 const EstablishChannelCallback& callback, | 206 const EstablishChannelCallback& callback, |
| 207 mojo::ScopedMessagePipeHandle channel_handle); | 207 mojo::ScopedMessagePipeHandle channel_handle); |
| 208 | 208 |
| 209 // Message handlers. | 209 // Message handlers. |
| 210 void OnInitialized(bool result, | |
| 211 const gpu::GPUInfo& gpu_info, | |
| 212 const gpu::GpuFeatureInfo& gpu_feature_info); | |
| 213 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 210 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
| 214 #if defined(OS_ANDROID) | 211 #if defined(OS_ANDROID) |
| 215 void OnDestroyingVideoSurfaceAck(); | 212 void OnDestroyingVideoSurfaceAck(); |
| 216 #endif | 213 #endif |
| 217 void OnFieldTrialActivated(const std::string& trial_name); | 214 void OnFieldTrialActivated(const std::string& trial_name); |
| 218 | 215 |
| 219 void CreateChannelCache(int32_t client_id); | 216 void CreateChannelCache(int32_t client_id); |
| 220 | 217 |
| 221 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); | 218 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); |
| 222 | 219 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 gpu::GpuProcessHostActivityFlags activity_flags_; | 300 gpu::GpuProcessHostActivityFlags activity_flags_; |
| 304 | 301 |
| 305 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; | 302 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; |
| 306 | 303 |
| 307 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 304 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 308 }; | 305 }; |
| 309 | 306 |
| 310 } // namespace content | 307 } // namespace content |
| 311 | 308 |
| 312 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 309 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |