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

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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more ozone build fix Created 6 years, 1 month 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Tells the GPU process to create a new command buffer that draws into the 111 // Tells the GPU process to create a new command buffer that draws into the
112 // given surface. 112 // given surface.
113 void CreateViewCommandBuffer( 113 void CreateViewCommandBuffer(
114 const gfx::GLSurfaceHandle& compositing_surface, 114 const gfx::GLSurfaceHandle& compositing_surface,
115 int surface_id, 115 int surface_id,
116 int client_id, 116 int client_id,
117 const GPUCreateCommandBufferConfig& init_params, 117 const GPUCreateCommandBufferConfig& init_params,
118 int route_id, 118 int route_id,
119 const CreateCommandBufferCallback& callback); 119 const CreateCommandBufferCallback& callback);
120 120
121 // Tells the GPU process to create a new GPU memory buffer using the given 121 // Tells the GPU process to create a new GPU memory buffer.
122 // handle. 122 void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
123 void CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 123 gfx::GpuMemoryBufferId id,
124 const gfx::Size& size, 124 const gfx::Size& size,
125 gfx::GpuMemoryBuffer::Format format, 125 gfx::GpuMemoryBuffer::Format format,
126 gfx::GpuMemoryBuffer::Usage usage, 126 gfx::GpuMemoryBuffer::Usage usage,
127 int client_id,
127 const CreateGpuMemoryBufferCallback& callback); 128 const CreateGpuMemoryBufferCallback& callback);
128 129
129 // Tells the GPU process to destroy GPU memory buffer. 130 // Tells the GPU process to destroy GPU memory buffer.
130 void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 131 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
132 gfx::GpuMemoryBufferId id,
133 int client_id,
131 int sync_point); 134 int sync_point);
132 135
133 // What kind of GPU process, e.g. sandboxed or unsandboxed. 136 // What kind of GPU process, e.g. sandboxed or unsandboxed.
134 GpuProcessKind kind(); 137 GpuProcessKind kind();
135 138
136 void ForceShutdown(); 139 void ForceShutdown();
137 140
138 void BeginFrameSubscription( 141 void BeginFrameSubscription(
139 int surface_id, 142 int surface_id,
140 base::WeakPtr<RenderWidgetHostViewFrameSubscriber> subscriber); 143 base::WeakPtr<RenderWidgetHostViewFrameSubscriber> subscriber);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > 277 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> >
275 SurfaceRefMap; 278 SurfaceRefMap;
276 SurfaceRefMap surface_refs_; 279 SurfaceRefMap surface_refs_;
277 280
278 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 281 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
279 }; 282 };
280 283
281 } // namespace content 284 } // namespace content
282 285
283 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 286 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_memory_buffer_factory_host_impl.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698