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

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: rm some unneeded hunks 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: 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..b93a4ed4332b318215c1a11cd04c1bc3b5006df3 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 {
+class NativePixmapHandle;
+class Size;
+}
+
namespace base {
struct FileDescriptor;
@@ -42,8 +46,8 @@ 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,
+ virtual scoped_ptr<ClientNativePixmap> ImportFromHandle(
+ const gfx::NativePixmapHandle& handle,
const gfx::Size& size,
gfx::BufferFormat format,
gfx::BufferUsage usage) = 0;

Powered by Google App Engine
This is Rietveld 408576698