| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void DidDestroyOffscreenContext(const GURL& url) override; | 189 void DidDestroyOffscreenContext(const GURL& url) override; |
| 190 void DidDestroyChannel(int32_t client_id) override; | 190 void DidDestroyChannel(int32_t client_id) override; |
| 191 void DidLoseContext(bool offscreen, | 191 void DidLoseContext(bool offscreen, |
| 192 gpu::error::ContextLostReason reason, | 192 gpu::error::ContextLostReason reason, |
| 193 const GURL& active_url) override; | 193 const GURL& active_url) override; |
| 194 void SetChildSurface(gpu::SurfaceHandle parent, | 194 void SetChildSurface(gpu::SurfaceHandle parent, |
| 195 gpu::SurfaceHandle child) override; | 195 gpu::SurfaceHandle child) override; |
| 196 void StoreShaderToDisk(int32_t client_id, | 196 void StoreShaderToDisk(int32_t client_id, |
| 197 const std::string& key, | 197 const std::string& key, |
| 198 const std::string& shader) override; | 198 const std::string& shader) override; |
| 199 void RecordLogMessage(int32_t severity, |
| 200 const std::string& header, |
| 201 const std::string& message) override; |
| 199 | 202 |
| 200 void OnChannelEstablished(int client_id, | 203 void OnChannelEstablished(int client_id, |
| 201 const EstablishChannelCallback& callback, | 204 const EstablishChannelCallback& callback, |
| 202 mojo::ScopedMessagePipeHandle channel_handle); | 205 mojo::ScopedMessagePipeHandle channel_handle); |
| 203 | 206 |
| 204 // Message handlers. | 207 // Message handlers. |
| 205 void OnInitialized(bool result, | 208 void OnInitialized(bool result, |
| 206 const gpu::GPUInfo& gpu_info, | 209 const gpu::GPUInfo& gpu_info, |
| 207 const gpu::GpuFeatureInfo& gpu_feature_info); | 210 const gpu::GpuFeatureInfo& gpu_feature_info); |
| 208 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 211 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 gpu::GpuProcessHostActivityFlags activity_flags_; | 301 gpu::GpuProcessHostActivityFlags activity_flags_; |
| 299 | 302 |
| 300 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; | 303 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; |
| 301 | 304 |
| 302 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 303 }; | 306 }; |
| 304 | 307 |
| 305 } // namespace content | 308 } // namespace content |
| 306 | 309 |
| 307 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |