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

Unified Diff: ui/ozone/public/client_native_pixmap_factory.h

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cast build 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | ui/ozone/public/native_pixmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/client_native_pixmap_factory.h
diff --git a/ui/ozone/public/client_native_pixmap_factory.h b/ui/ozone/public/client_native_pixmap_factory.h
index 1f216018d19b99818273b6db1bf2e482cb3ea4b4..7005e1cee564a7acc0bff0712eb8c06327d698f1 100644
--- a/ui/ozone/public/client_native_pixmap_factory.h
+++ b/ui/ozone/public/client_native_pixmap_factory.h
@@ -9,10 +9,14 @@
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/buffer_types.h"
-#include "ui/gfx/geometry/size.h"
#include "ui/ozone/ozone_export.h"
#include "ui/ozone/public/client_native_pixmap.h"
+namespace gfx {
+struct NativePixmapHandle;
+class Size;
+}
+
namespace base {
struct FileDescriptor;
@@ -42,8 +46,9 @@ class OZONE_EXPORT ClientNativePixmapFactory {
// TODO(dshwang): implement it. crbug.com/475633
// Import the native pixmap from |handle| to be used in non-GPU processes.
- virtual scoped_ptr<ClientNativePixmap> ImportNativePixmap(
- const base::FileDescriptor& handle,
+ // This function takes ownership of any file descriptors in |handle|.
+ virtual scoped_ptr<ClientNativePixmap> ImportFromHandle(
+ const gfx::NativePixmapHandle& handle,
const gfx::Size& size,
gfx::BufferFormat format,
gfx::BufferUsage usage) = 0;
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | ui/ozone/public/native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698