OLD | NEW |
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 "chromecast/common/media/cast_media_client.h" | 5 #include "chromecast/common/media/cast_media_client.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "chromecast/media/base/media_codec_support.h" | 8 #include "chromecast/media/base/media_codec_support.h" |
9 #include "chromecast/public/media/media_capabilities_shlib.h" | 9 #include "chromecast/public/media/media_capabilities_shlib.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void CastMediaClient::RecordRapporURL(const std::string& metric, | 53 void CastMediaClient::RecordRapporURL(const std::string& metric, |
54 const GURL& url) { | 54 const GURL& url) { |
55 content_media_client_->RecordRapporURL(metric, url); | 55 content_media_client_->RecordRapporURL(metric, url); |
56 } | 56 } |
57 | 57 |
58 // static | 58 // static |
59 bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, | 59 bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, |
60 ::media::VideoCodecProfile profile, | 60 ::media::VideoCodecProfile profile, |
61 int level) { | 61 int level) { |
62 return MediaCapabilitiesShlib::IsSupportedVideoConfig( | 62 return MediaCapabilitiesShlib::IsSupportedVideoConfig( |
63 ToCastVideoCodec(codec), ToCastVideoProfile(profile), level); | 63 ToCastVideoCodec(codec, profile), ToCastVideoProfile(profile), level); |
64 } | 64 } |
65 | 65 |
66 } // namespace media | 66 } // namespace media |
67 } // namespace chromecast | 67 } // namespace chromecast |
OLD | NEW |