Chromium Code Reviews| Index: content/public/browser/android/synchronous_compositor.cc |
| diff --git a/content/public/browser/android/synchronous_compositor.cc b/content/public/browser/android/synchronous_compositor.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b485bfb027b26a548ab8539abebf94664b250101 |
| --- /dev/null |
| +++ b/content/public/browser/android/synchronous_compositor.cc |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/public/browser/android/synchronous_compositor.h" |
| + |
| +#include <utility> |
| + |
| +#include "cc/output/compositor_frame.h" |
| + |
| +namespace content { |
| + |
| +SynchronousCompositor::Frame::Frame() : output_surface_id(0u) {} |
| + |
| +SynchronousCompositor::Frame::~Frame() {} |
| + |
| +SynchronousCompositor::Frame::Frame(Frame&& rhs) |
| + : output_surface_id(rhs.output_surface_id), frame(std::move(rhs.frame)) {} |
| + |
| +SynchronousCompositor::Frame& SynchronousCompositor::Frame::operator=( |
| + 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.
|
| + output_surface_id = rhs.output_surface_id; |
| + frame = std::move(rhs.frame); |
| + return *this; |
| +} |
| + |
| +} // namespace content |