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

Unified Diff: gpu/command_buffer/service/image_factory.h

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 years, 5 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
« no previous file with comments | « cc/test/test_image_factory.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/image_factory.h
diff --git a/gpu/command_buffer/service/image_factory.h b/gpu/command_buffer/service/image_factory.h
index 1db88cc8ed7cb076aa6801a9b656d477668f57b1..144852b67be1e5f86d3ec4df1c95e7320ed6e962 100644
--- a/gpu/command_buffer/service/image_factory.h
+++ b/gpu/command_buffer/service/image_factory.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "gpu/gpu_export.h"
+#include "gpu/ipc/common/surface_handle.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -28,7 +29,8 @@ class GPU_EXPORT ImageFactory {
const gfx::Size& size,
gfx::BufferFormat format,
unsigned internalformat,
- int client_id) = 0;
+ int client_id,
+ SurfaceHandle surface_handle) = 0;
// Create an anonymous GLImage backed by a GpuMemoryBuffer that doesn't have a
// client_id. It can't be passed to other processes.
« no previous file with comments | « cc/test/test_image_factory.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698