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

Unified Diff: components/exo/display.h

Issue 1412093006: components: Add Exosphere component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some ifdefs 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/buffer_unittest.cc ('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
new file mode 100644
index 0000000000000000000000000000000000000000..472f4c96bc9d4ba24da3c95c9d72cd2166970b19
--- /dev/null
+++ b/components/exo/display.h
@@ -0,0 +1,43 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_EXO_DISPLAY_H_
+#define COMPONENTS_EXO_DISPLAY_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/shared_memory_handle.h"
+
+namespace exo {
+class SharedMemory;
+class ShellSurface;
+class Surface;
+
+// 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.
+class Display {
+ public:
+ Display();
+ ~Display();
+
+ // Creates a new surface.
+ scoped_ptr<Surface> CreateSurface();
+
+ // Creates a shared memory segment from |handle| of |size| with the
+ // given |id|. This function takes ownership of |handle|.
+ scoped_ptr<SharedMemory> CreateSharedMemory(
+ const base::SharedMemoryHandle& handle,
+ size_t size);
+
+ // Creates a shell surface for an existing surface.
+ scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Display);
+};
+
+} // namespace exo
+
+#endif // COMPONENTS_EXO_DISPLAY_H_
« no previous file with comments | « components/exo/buffer_unittest.cc ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698