OLD | NEW |
---|---|
(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 | |
OLD | NEW |