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

Side by Side Diff: chromecast/common/media/cast_media_client.cc

Issue 2723833002: WebM support for new multipart VP9 string. (Closed)
Patch Set: Use latest ordering (9 parts), Plumb eotf to media client Created 3 years, 9 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 "chromecast/common/media/cast_media_client.h" 5 #include "chromecast/common/media/cast_media_client.h"
6 6
7 #include "chromecast/media/base/media_codec_support.h" 7 #include "chromecast/media/base/media_codec_support.h"
8 #include "chromecast/media/base/supported_codec_profile_levels_memo.h" 8 #include "chromecast/media/base/supported_codec_profile_levels_memo.h"
9 #include "chromecast/public/media/media_capabilities_shlib.h" 9 #include "chromecast/public/media/media_capabilities_shlib.h"
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 void CastMediaClient::RecordRapporURL(const std::string& metric, 54 void CastMediaClient::RecordRapporURL(const std::string& metric,
55 const GURL& url) { 55 const GURL& url) {
56 content_media_client_->RecordRapporURL(metric, url); 56 content_media_client_->RecordRapporURL(metric, url);
57 } 57 }
58 58
59 // static 59 // static
60 bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, 60 bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec,
61 ::media::VideoCodecProfile profile, 61 ::media::VideoCodecProfile profile,
62 int level) { 62 int level,
63 gfx::ColorSpace::TransferID eotf) {
64 // TODO(servolk): make use of eotf.
servolk 2017/03/02 18:56:36 Nit: missing closing brace. Also I think it might
chcunningham 2017/03/02 23:13:08 I'm not seeing it. Do you mean the brace for the m
chcunningham 2017/03/07 02:27:56 Done.
65
63 #if defined(OS_ANDROID) 66 #if defined(OS_ANDROID)
64 return supported_profiles_->IsSupportedVideoConfig( 67 return supported_profiles_->IsSupportedVideoConfig(
65 ToCastVideoCodec(codec), ToCastVideoProfile(profile), level); 68 ToCastVideoCodec(codec), ToCastVideoProfile(profile), level);
66 #else 69 #else
67 return MediaCapabilitiesShlib::IsSupportedVideoConfig( 70 return MediaCapabilitiesShlib::IsSupportedVideoConfig(
68 ToCastVideoCodec(codec), ToCastVideoProfile(profile), level); 71 ToCastVideoCodec(codec), ToCastVideoProfile(profile), level);
69 #endif 72 #endif
70 } 73 }
71 74
72 } // namespace media 75 } // namespace media
73 } // namespace chromecast 76 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698