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

Unified Diff: gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h

Issue 1837703002: gpu: Export/import buffers created by Ozone GMB factory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move dup() to ShareGpuMemoryBufferToGpuProcess Created 4 years, 6 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: gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h b/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h
index 07ff293e4154c821bd5e37e2ff32685eda297682..b9f949f094f501958cb63612edf24a446487de9b 100644
--- a/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h
@@ -5,7 +5,6 @@
#ifndef GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_OZONE_NATIVE_PIXMAP_H_
#define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_OZONE_NATIVE_PIXMAP_H_
-#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "gpu/command_buffer/service/image_factory.h"
@@ -41,7 +40,7 @@ class GPU_EXPORT GpuMemoryBufferFactoryOzoneNativePixmap
gfx::BufferFormat format,
int client_id) override;
void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
- int client_id) override;
+ int client_id) override {}
ImageFactory* AsImageFactory() override;
// Overridden from ImageFactory:
@@ -53,12 +52,6 @@ class GPU_EXPORT GpuMemoryBufferFactoryOzoneNativePixmap
int client_id) override;
private:
- using NativePixmapMapKey = std::pair<int, int>;
- using NativePixmapMap =
- base::hash_map<NativePixmapMapKey, scoped_refptr<ui::NativePixmap>>;
- NativePixmapMap native_pixmaps_;
- base::Lock native_pixmaps_lock_;
-
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryOzoneNativePixmap);
};

Powered by Google App Engine
This is Rietveld 408576698