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

Side by Side Diff: cc/surfaces/surface_reference.cc

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: Created 4 years 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 "cc/surfaces/surface_reference.h"
6
7 namespace cc {
8
9 SurfaceReference::SurfaceReference() {}
10
11 SurfaceReference::SurfaceReference(const SurfaceId& parent_id,
12 const SurfaceId& child_id)
13 : parent_id_(parent_id), child_id_(child_id) {}
14
15 SurfaceReference::SurfaceReference(const SurfaceReference& other) = default;
16
17 SurfaceReference::~SurfaceReference() {}
18
19 std::string SurfaceReference::ToString() const {
20 return parent_id_.ToString() + " to " + child_id_.ToString();
21 }
22
23 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698