OLD | NEW |
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 SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ |
6 #define SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 mojom::SurfaceClientPtr client); | 39 mojom::SurfaceClientPtr client); |
40 | 40 |
41 ServerWindow* window() { return window_; } | 41 ServerWindow* window() { return window_; } |
42 | 42 |
43 ServerWindowSurface* GetDefaultSurface() const; | 43 ServerWindowSurface* GetDefaultSurface() const; |
44 ServerWindowSurface* GetUnderlaySurface() const; | 44 ServerWindowSurface* GetUnderlaySurface() const; |
45 ServerWindowSurface* GetSurfaceByType(mojom::SurfaceType type) const; | 45 ServerWindowSurface* GetSurfaceByType(mojom::SurfaceType type) const; |
46 bool HasSurfaceOfType(mojom::SurfaceType type) const; | 46 bool HasSurfaceOfType(mojom::SurfaceType type) const; |
47 bool HasAnySurface() const; | 47 bool HasAnySurface() const; |
48 | 48 |
49 uint32_t id_namespace() const { return surface_id_allocator_.id_namespace(); } | 49 uint32_t client_id() const { return surface_id_allocator_.client_id(); } |
50 cc::SurfaceManager* GetSurfaceManager(); | 50 cc::SurfaceManager* GetSurfaceManager(); |
51 | 51 |
52 private: | 52 private: |
53 friend class ServerWindowSurfaceManagerTestApi; | 53 friend class ServerWindowSurfaceManagerTestApi; |
54 friend class ServerWindowSurface; | 54 friend class ServerWindowSurface; |
55 | 55 |
56 // Returns true if a surface of |type| has been set and its size is greater | 56 // Returns true if a surface of |type| has been set and its size is greater |
57 // than the size of the window. | 57 // than the size of the window. |
58 bool IsSurfaceReadyAndNonEmpty(mojom::SurfaceType type) const; | 58 bool IsSurfaceReadyAndNonEmpty(mojom::SurfaceType type) const; |
59 | 59 |
(...skipping 15 matching lines...) Expand all Loading... |
75 // the underlay is not necessarily as big as the window. | 75 // the underlay is not necessarily as big as the window. |
76 bool waiting_for_initial_frames_; | 76 bool waiting_for_initial_frames_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurfaceManager); | 78 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurfaceManager); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace ws | 81 } // namespace ws |
82 } // namespace ui | 82 } // namespace ui |
83 | 83 |
84 #endif // SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ | 84 #endif // SERVICES_UI_WS_SERVER_WINDOW_SURFACE_MANAGER_H_ |
OLD | NEW |