| 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 #include "media/base/surface_manager.h" |
| 7 |
| 8 namespace media { |
| 9 |
| 10 OverlayInfo::OverlayInfo() = default; |
| 11 OverlayInfo::OverlayInfo(const OverlayInfo&) = default; |
| 12 |
| 13 bool OverlayInfo::HasValidSurfaceId() const { |
| 14 return surface_id != SurfaceManager::kNoSurfaceID; |
| 15 } |
| 16 |
| 17 bool OverlayInfo::HasValidRoutingToken() const { |
| 18 return routing_token.has_value(); |
| 19 } |
| 20 |
| 21 } // namespace media |
| OLD | NEW |