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

Unified Diff: components/exo/display.h

Issue 1427743004: exo: Add support for wl_drm version 2 to wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-drm-third-party
Patch Set: fix unit test and nit Created 5 years, 1 month 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 | « components/exo.gypi ('k') | components/exo/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/display.h
diff --git a/components/exo/display.h b/components/exo/display.h
index 41099509a91c7ac0d73e024adc4ff14b49e8d211..92a4c1cb6da517e83841c0144bced90bc3ddb77a 100644
--- a/components/exo/display.h
+++ b/components/exo/display.h
@@ -9,12 +9,22 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory_handle.h"
+#if defined(USE_OZONE)
+#include "base/files/scoped_file.h"
+#include "ui/gfx/buffer_types.h"
+#include "ui/gfx/geometry/size.h"
+#endif
+
namespace exo {
class SharedMemory;
class ShellSurface;
class SubSurface;
class Surface;
+#if defined(USE_OZONE)
+class Buffer;
+#endif
+
// The core display class. This class provides functions for creating surfaces
// and is in charge of combining the contents of multiple surfaces into one
// displayable output.
@@ -32,6 +42,14 @@ class Display {
const base::SharedMemoryHandle& handle,
size_t size);
+#if defined(USE_OZONE)
+ // Creates a buffer for the prime fd.
+ scoped_ptr<Buffer> CreatePrimeBuffer(base::ScopedFD fd,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ int stride);
+#endif
+
// Creates a shell surface for an existing surface.
scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface);
« no previous file with comments | « components/exo.gypi ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698