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

Unified Diff: content/child/child_gpu_memory_buffer_manager.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/child/child_gpu_memory_buffer_manager.cc
diff --git a/content/child/child_gpu_memory_buffer_manager.cc b/content/child/child_gpu_memory_buffer_manager.cc
index f56c60a5fc7d4054a4a45bfc0f8fd3ccc61fc73e..9031bdb98b77916213b59c46ab681be459fa9159 100644
--- a/content/child/child_gpu_memory_buffer_manager.cc
+++ b/content/child/child_gpu_memory_buffer_manager.cc
@@ -13,7 +13,7 @@ namespace {
void DeletedGpuMemoryBuffer(ThreadSafeSender* sender,
gfx::GpuMemoryBufferType type,
- const gfx::GpuMemoryBufferId& id,
+ gfx::GpuMemoryBufferId id,
uint32 sync_point) {
TRACE_EVENT0("renderer",
"ChildGpuMemoryBufferManager::DeletedGpuMemoryBuffer");
@@ -54,11 +54,10 @@ ChildGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
handle,
size,
format,
- base::Bind(
- &DeletedGpuMemoryBuffer, sender_, handle.type, handle.global_id)));
+ base::Bind(&DeletedGpuMemoryBuffer, sender_, handle.type, handle.id)));
if (!buffer) {
sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer(
- handle.type, handle.global_id, 0));
+ handle.type, handle.id, 0));
return scoped_ptr<gfx::GpuMemoryBuffer>();
}
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/android/surface_texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698