OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/exo/compositor_frame_sink.h" | 5 #include "components/exo/compositor_frame_sink.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "cc/surfaces/surface.h" | 8 #include "cc/surfaces/surface.h" |
8 #include "cc/surfaces/surface_manager.h" | 9 #include "cc/surfaces/surface_manager.h" |
9 #include "mojo/public/cpp/bindings/strong_binding.h" | 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
10 | 11 |
11 namespace exo { | 12 namespace exo { |
12 | 13 |
13 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
14 // ExoComopositorFrameSink, public: | 15 // ExoComopositorFrameSink, public: |
15 | 16 |
16 // static | 17 // static |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 if (client_) | 93 if (client_) |
93 client_->ReclaimResources(resources); | 94 client_->ReclaimResources(resources); |
94 } | 95 } |
95 | 96 |
96 void CompositorFrameSink::WillDrawSurface() { | 97 void CompositorFrameSink::WillDrawSurface() { |
97 if (client_) | 98 if (client_) |
98 client_->WillDrawSurface(); | 99 client_->WillDrawSurface(); |
99 } | 100 } |
100 | 101 |
101 } // namespace exo | 102 } // namespace exo |
OLD | NEW |