Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Cleanup Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698