Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
195 #if defined(OS_ANDROID) 195 #if defined(OS_ANDROID)
196 void OnDestroyingVideoSurfaceAck(int surface_id); 196 void OnDestroyingVideoSurfaceAck(int surface_id);
197 #endif 197 #endif
198 void OnDidCreateOffscreenContext(const GURL& url); 198 void OnDidCreateOffscreenContext(const GURL& url);
199 void OnDidLoseContext(bool offscreen, 199 void OnDidLoseContext(bool offscreen,
200 gpu::error::ContextLostReason reason, 200 gpu::error::ContextLostReason reason,
201 const GURL& url); 201 const GURL& url);
202 void OnDidDestroyOffscreenContext(const GURL& url); 202 void OnDidDestroyOffscreenContext(const GURL& url);
203 void OnGpuMemoryUmaStatsReceived(const gpu::GPUMemoryUmaStats& stats); 203 void OnGpuMemoryUmaStatsReceived(const gpu::GPUMemoryUmaStats& stats);
204 #if defined(OS_MACOSX)
205 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message);
206 #endif
207 204
208 #if defined(OS_WIN) 205 #if defined(OS_WIN)
209 void OnAcceleratedSurfaceCreatedChildWindow( 206 void OnAcceleratedSurfaceCreatedChildWindow(
210 gpu::SurfaceHandle parent_handle, 207 gpu::SurfaceHandle parent_handle,
211 gpu::SurfaceHandle window_handle); 208 gpu::SurfaceHandle window_handle);
212 #endif 209 #endif
213 210
214 void CreateChannelCache(int32_t client_id); 211 void CreateChannelCache(int32_t client_id);
215 void OnDestroyChannel(int32_t client_id); 212 void OnDestroyChannel(int32_t client_id);
216 void OnCacheShader(int32_t client_id, 213 void OnCacheShader(int32_t client_id,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 301 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
305 // process and contains the browser's ServiceRegistry. 302 // process and contains the browser's ServiceRegistry.
306 std::unique_ptr<MojoApplicationHost> mojo_application_host_; 303 std::unique_ptr<MojoApplicationHost> mojo_application_host_;
307 304
308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
309 }; 306 };
310 307
311 } // namespace content 308 } // namespace content
312 309
313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/vulkan_browser_compositor_output_surface.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698