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

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

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Remove callback 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 if (needs_begin_frame_ == added_frame_observer_) 240 if (needs_begin_frame_ == added_frame_observer_)
241 return; 241 return;
242 242
243 added_frame_observer_ = needs_begin_frame_; 243 added_frame_observer_ = needs_begin_frame_;
244 if (needs_begin_frame_) 244 if (needs_begin_frame_)
245 begin_frame_source_->AddObserver(this); 245 begin_frame_source_->AddObserver(this);
246 else 246 else
247 begin_frame_source_->RemoveObserver(this); 247 begin_frame_source_->RemoveObserver(this);
248 } 248 }
249 249
250 void CompositorFrameSinkSupport::RequestCopyOfSurface(
251 std::unique_ptr<CopyOutputRequest> request) {
252 surface_factory_.RequestCopyOfSurface(std::move(request));
253 }
254
250 } // namespace cc 255 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698