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 "content/public/browser/android/synchronous_compositor.h" | 5 #include "content/public/browser/android/synchronous_compositor.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 SynchronousCompositor::Frame::Frame() : output_surface_id(0u) {} | 13 SynchronousCompositor::Frame::Frame() : compositor_frame_sink_id(0u) {} |
14 | 14 |
15 SynchronousCompositor::Frame::~Frame() {} | 15 SynchronousCompositor::Frame::~Frame() {} |
16 | 16 |
17 SynchronousCompositor::Frame::Frame(Frame&& rhs) | 17 SynchronousCompositor::Frame::Frame(Frame&& rhs) |
18 : output_surface_id(rhs.output_surface_id), frame(std::move(rhs.frame)) {} | 18 : compositor_frame_sink_id(rhs.compositor_frame_sink_id), |
| 19 frame(std::move(rhs.frame)) {} |
19 | 20 |
20 SynchronousCompositor::Frame& SynchronousCompositor::Frame::operator=( | 21 SynchronousCompositor::Frame& SynchronousCompositor::Frame::operator=( |
21 Frame&& rhs) { | 22 Frame&& rhs) { |
22 output_surface_id = rhs.output_surface_id; | 23 compositor_frame_sink_id = rhs.compositor_frame_sink_id; |
23 frame = std::move(rhs.frame); | 24 frame = std::move(rhs.frame); |
24 return *this; | 25 return *this; |
25 } | 26 } |
26 | 27 |
27 } // namespace content | 28 } // namespace content |
OLD | NEW |