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

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

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 "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
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/public/test/test_synchronous_compositor_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698