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

Side by Side Diff: content/public/browser/android/synchronous_compositor.cc

Issue 1769913003: sync compositor: Add output_surface_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/public/browser/android/synchronous_compositor.h"
6
7 #include <utility>
8
9 #include "cc/output/compositor_frame.h"
10
11 namespace content {
12
13 SynchronousCompositor::Frame::Frame() : output_surface_id(0u) {}
14
15 SynchronousCompositor::Frame::~Frame() {}
16
17 SynchronousCompositor::Frame::Frame(Frame&& rhs)
18 : output_surface_id(rhs.output_surface_id), frame(std::move(rhs.frame)) {}
19
20 SynchronousCompositor::Frame& SynchronousCompositor::Frame::operator=(
21 SynchronousCompositor::Frame&& rhs) {
dcheng 2016/03/22 07:22:37 Frame&& rhs should work, for consistency with the
boliu 2016/03/22 15:25:50 Done.
22 output_surface_id = rhs.output_surface_id;
23 frame = std::move(rhs.frame);
24 return *this;
25 }
26
27 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698