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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc

Issue 1280513002: Add GenericSharedMemoryId and use w/ GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trackpools
Patch Set: remove "tracing" from name 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc
index 8435d69e54081c4c85919b761b2623f27d5fa0f1..6e482e5844dd2e119ba54e40440d7f03511b9969 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc
@@ -75,7 +75,7 @@ GpuMemoryBufferFactoryOzoneNativePixmap::CreateGpuMemoryBuffer(
return gfx::GpuMemoryBufferHandle();
}
base::AutoLock lock(native_pixmaps_lock_);
- NativePixmapMapKey key(id, client_id);
+ NativePixmapMapKey key(id.id, client_id);
DCHECK(native_pixmaps_.find(key) == native_pixmaps_.end())
<< "pixmap with this key must not exist";
native_pixmaps_[key] = pixmap;
@@ -90,7 +90,7 @@ void GpuMemoryBufferFactoryOzoneNativePixmap::DestroyGpuMemoryBuffer(
gfx::GpuMemoryBufferId id,
int client_id) {
base::AutoLock lock(native_pixmaps_lock_);
- auto it = native_pixmaps_.find(NativePixmapMapKey(id, client_id));
+ auto it = native_pixmaps_.find(NativePixmapMapKey(id.id, client_id));
DCHECK(it != native_pixmaps_.end()) << "pixmap with this key must exist";
native_pixmaps_.erase(it);
}
@@ -111,7 +111,7 @@ GpuMemoryBufferFactoryOzoneNativePixmap::CreateImageForGpuMemoryBuffer(
{
base::AutoLock lock(native_pixmaps_lock_);
NativePixmapMap::iterator it =
- native_pixmaps_.find(NativePixmapMapKey(handle.id, client_id));
+ native_pixmaps_.find(NativePixmapMapKey(handle.id.id, client_id));
if (it == native_pixmaps_.end()) {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698