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 COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 mojom::SurfaceClientPtr client); | 36 mojom::SurfaceClientPtr client); |
37 | 37 |
38 ~ServerWindowSurface() override; | 38 ~ServerWindowSurface() override; |
39 | 39 |
40 const gfx::Size& last_submitted_frame_size() const { | 40 const gfx::Size& last_submitted_frame_size() const { |
41 return last_submitted_frame_size_; | 41 return last_submitted_frame_size_; |
42 } | 42 } |
43 | 43 |
44 // mojom::Surface: | 44 // mojom::Surface: |
45 void SubmitCompositorFrame( | 45 void SubmitCompositorFrame( |
46 cc::mojom::CompositorFramePtr frame, | 46 cc::CompositorFrame frame, |
47 const SubmitCompositorFrameCallback& callback) override; | 47 const SubmitCompositorFrameCallback& callback) override; |
48 | 48 |
49 const cc::SurfaceId& id() const { return surface_id_; } | 49 const cc::SurfaceId& id() const { return surface_id_; } |
50 | 50 |
51 // Destroys old surfaces that have been outdated by a new surface. | 51 // Destroys old surfaces that have been outdated by a new surface. |
52 void DestroySurfacesScheduledForDestruction(); | 52 void DestroySurfacesScheduledForDestruction(); |
53 | 53 |
54 // Registers this with the SurfaceManager | 54 // Registers this with the SurfaceManager |
55 void RegisterForBeginFrames(); | 55 void RegisterForBeginFrames(); |
56 | 56 |
(...skipping 20 matching lines...) Expand all Loading... |
77 bool registered_surface_factory_client_; | 77 bool registered_surface_factory_client_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); | 79 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace ws | 82 } // namespace ws |
83 | 83 |
84 } // namespace mus | 84 } // namespace mus |
85 | 85 |
86 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 86 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
OLD | NEW |