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_holder.h" | 5 #include "components/exo/compositor_frame_sink_holder.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "cc/resources/returned_resource.h" | 8 #include "cc/resources/returned_resource.h" |
8 #include "components/exo/surface.h" | 9 #include "components/exo/surface.h" |
9 | 10 |
10 namespace exo { | 11 namespace exo { |
11 | 12 |
12 //////////////////////////////////////////////////////////////////////////////// | 13 //////////////////////////////////////////////////////////////////////////////// |
13 // CompositorFrameSinkHolder, public: | 14 // CompositorFrameSinkHolder, public: |
14 | 15 |
15 CompositorFrameSinkHolder::CompositorFrameSinkHolder( | 16 CompositorFrameSinkHolder::CompositorFrameSinkHolder( |
16 Surface* surface, | 17 Surface* surface, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 134 |
134 bool needs_begin_frame = !active_frame_callbacks_.empty(); | 135 bool needs_begin_frame = !active_frame_callbacks_.empty(); |
135 if (needs_begin_frame == needs_begin_frame_) | 136 if (needs_begin_frame == needs_begin_frame_) |
136 return; | 137 return; |
137 | 138 |
138 needs_begin_frame_ = needs_begin_frame; | 139 needs_begin_frame_ = needs_begin_frame; |
139 OnNeedsBeginFrames(needs_begin_frame_); | 140 OnNeedsBeginFrames(needs_begin_frame_); |
140 } | 141 } |
141 | 142 |
142 } // namespace exo | 143 } // namespace exo |
OLD | NEW |