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 "cc/surfaces/compositor_frame_sink_support.h" | 5 #include "cc/surfaces/compositor_frame_sink_support.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 if (needs_begin_frame_ == added_frame_observer_) | 238 if (needs_begin_frame_ == added_frame_observer_) |
239 return; | 239 return; |
240 | 240 |
241 added_frame_observer_ = needs_begin_frame_; | 241 added_frame_observer_ = needs_begin_frame_; |
242 if (needs_begin_frame_) | 242 if (needs_begin_frame_) |
243 begin_frame_source_->AddObserver(this); | 243 begin_frame_source_->AddObserver(this); |
244 else | 244 else |
245 begin_frame_source_->RemoveObserver(this); | 245 begin_frame_source_->RemoveObserver(this); |
246 } | 246 } |
247 | 247 |
| 248 void CompositorFrameSinkSupport::RequestCopyOfSurface( |
| 249 std::unique_ptr<CopyOutputRequest> request) { |
| 250 surface_factory_.RequestCopyOfSurface(std::move(request)); |
| 251 } |
| 252 |
248 } // namespace cc | 253 } // namespace cc |
OLD | NEW |