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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const gfx::GLSurfaceHandle& compositing_surface, 121 const gfx::GLSurfaceHandle& compositing_surface,
122 int surface_id, 122 int surface_id,
123 int client_id, 123 int client_id,
124 const GPUCreateCommandBufferConfig& init_params, 124 const GPUCreateCommandBufferConfig& init_params,
125 int route_id, 125 int route_id,
126 const CreateCommandBufferCallback& callback); 126 const CreateCommandBufferCallback& callback);
127 127
128 // Tells the GPU process to create a new GPU memory buffer. 128 // Tells the GPU process to create a new GPU memory buffer.
129 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 129 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
130 const gfx::Size& size, 130 const gfx::Size& size,
131 gfx::GpuMemoryBuffer::Format format, 131 gfx::BufferFormat format,
132 gfx::GpuMemoryBuffer::Usage usage, 132 gfx::BufferUsage usage,
133 int client_id, 133 int client_id,
134 int32 surface_id, 134 int32 surface_id,
135 const CreateGpuMemoryBufferCallback& callback); 135 const CreateGpuMemoryBufferCallback& callback);
136 136
137 // Tells the GPU process to destroy GPU memory buffer. 137 // Tells the GPU process to destroy GPU memory buffer.
138 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 138 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
139 int client_id, 139 int client_id,
140 int sync_point); 140 int sync_point);
141 141
142 // What kind of GPU process, e.g. sandboxed or unsandboxed. 142 // What kind of GPU process, e.g. sandboxed or unsandboxed.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // IOSurfaces. 294 // IOSurfaces.
295 IOSurfaceManagerToken io_surface_manager_token_; 295 IOSurfaceManagerToken io_surface_manager_token_;
296 #endif 296 #endif
297 297
298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
299 }; 299 };
300 300
301 } // namespace content 301 } // namespace content
302 302
303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698