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

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

Issue 2878573002: gpu: guarantee to match pending GBM buffer request to actual GBM handle (Closed)
Patch Set: errata: GBM -> GpuMemoryBuffer Created 3 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 std::string GetShaderPrefixKey(const std::string& shader); 224 std::string GetShaderPrefixKey(const std::string& shader);
225 225
226 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 226 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
227 int host_id_; 227 int host_id_;
228 228
229 // These are the channel requests that we have already sent to 229 // These are the channel requests that we have already sent to
230 // the GPU process, but haven't heard back about yet. 230 // the GPU process, but haven't heard back about yet.
231 std::queue<EstablishChannelCallback> channel_requests_; 231 std::queue<EstablishChannelCallback> channel_requests_;
232 232
233 // The pending create gpu memory buffer requests we need to reply to. 233 // The pending create gpu memory buffer requests we need to reply to.
234 std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_; 234 base::flat_map<gfx::GpuMemoryBufferId, CreateGpuMemoryBufferCallback>
235 create_gpu_memory_buffer_requests_;
235 236
236 // A callback to signal the completion of a SendDestroyingVideoSurface call. 237 // A callback to signal the completion of a SendDestroyingVideoSurface call.
237 base::Closure send_destroying_video_surface_done_cb_; 238 base::Closure send_destroying_video_surface_done_cb_;
238 239
239 // Qeueud messages to send when the process launches. 240 // Qeueud messages to send when the process launches.
240 std::queue<IPC::Message*> queued_messages_; 241 std::queue<IPC::Message*> queued_messages_;
241 242
242 // Whether the GPU process is valid, set to false after Send() failed. 243 // Whether the GPU process is valid, set to false after Send() failed.
243 bool valid_; 244 bool valid_;
244 245
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 gpu::GpuProcessHostActivityFlags activity_flags_; 298 gpu::GpuProcessHostActivityFlags activity_flags_;
298 299
299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 300 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
300 301
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 302 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
302 }; 303 };
303 304
304 } // namespace content 305 } // namespace content
305 306
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 307 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698