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); |