Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 "media/base/overlay_info.h" | |
| 6 | |
| 7 namespace media { | |
| 8 | |
| 9 OverlayInfo::OverlayInfo() = default; | |
| 10 OverlayInfo::OverlayInfo(const OverlayInfo&) = default; | |
| 11 | |
| 12 // static | |
| 13 OverlayInfo OverlayInfo::SurfaceChange(int surface_id) { | |
| 14 OverlayInfo info; | |
| 15 info.surface_id = surface_id; | |
| 16 return info; | |
| 17 } | |
| 18 | |
| 19 // static | |
| 20 OverlayInfo OverlayInfo::RoutingTokenChange( | |
| 21 base::Optional<base::UnguessableToken> token) { | |
| 22 OverlayInfo info; | |
| 23 info.routing_token = token; | |
| 24 return info; | |
| 25 } | |
| 26 | |
| 27 OverlayInfo& OverlayInfo::operator|=(const OverlayInfo& other) { | |
| 28 if (other.surface_id) | |
| 29 surface_id = other.surface_id; | |
| 30 if (other.routing_token) | |
|
tguilbert
2017/05/24 19:14:54
Is there a reason why |is_fullscreen| is not copie
liberato (no reviews please)
2017/05/24 21:21:07
because it's error-prone. :) good catch.
i real
| |
| 31 routing_token = other.routing_token; | |
| 32 | |
| 33 return *this; | |
| 34 } | |
| 35 | |
| 36 } // namespace media | |
| OLD | NEW |