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

Side by Side Diff: components/exo/display.h

Issue 1419373013: exo: Add support for subcompositor interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere-xdg-shell
Patch Set: address review feedback 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 unified diff | Download patch
« no previous file with comments | « components/exo/BUILD.gn ('k') | components/exo/display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_EXO_DISPLAY_H_ 5 #ifndef COMPONENTS_EXO_DISPLAY_H_
6 #define COMPONENTS_EXO_DISPLAY_H_ 6 #define COMPONENTS_EXO_DISPLAY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory_handle.h" 10 #include "base/memory/shared_memory_handle.h"
11 11
12 namespace exo { 12 namespace exo {
13 class SharedMemory; 13 class SharedMemory;
14 class ShellSurface; 14 class ShellSurface;
15 class SubSurface;
15 class Surface; 16 class Surface;
16 17
17 // The core display class. This class provides functions for creating surfaces 18 // The core display class. This class provides functions for creating surfaces
18 // and is in charge of combining the contents of multiple surfaces into one 19 // and is in charge of combining the contents of multiple surfaces into one
19 // displayable output. 20 // displayable output.
20 class Display { 21 class Display {
21 public: 22 public:
22 Display(); 23 Display();
23 ~Display(); 24 ~Display();
24 25
25 // Creates a new surface. 26 // Creates a new surface.
26 scoped_ptr<Surface> CreateSurface(); 27 scoped_ptr<Surface> CreateSurface();
27 28
28 // Creates a shared memory segment from |handle| of |size| with the 29 // Creates a shared memory segment from |handle| of |size| with the
29 // given |id|. This function takes ownership of |handle|. 30 // given |id|. This function takes ownership of |handle|.
30 scoped_ptr<SharedMemory> CreateSharedMemory( 31 scoped_ptr<SharedMemory> CreateSharedMemory(
31 const base::SharedMemoryHandle& handle, 32 const base::SharedMemoryHandle& handle,
32 size_t size); 33 size_t size);
33 34
34 // Creates a shell surface for an existing surface. 35 // Creates a shell surface for an existing surface.
35 scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface); 36 scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface);
36 37
38 // Creates a sub-surface for an existing surface. The sub-surface will be
39 // a child of |parent|.
40 scoped_ptr<SubSurface> CreateSubSurface(Surface* surface, Surface* parent);
41
37 private: 42 private:
38 DISALLOW_COPY_AND_ASSIGN(Display); 43 DISALLOW_COPY_AND_ASSIGN(Display);
39 }; 44 };
40 45
41 } // namespace exo 46 } // namespace exo
42 47
43 #endif // COMPONENTS_EXO_DISPLAY_H_ 48 #endif // COMPONENTS_EXO_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/exo/BUILD.gn ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698