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

Side by Side Diff: media/base/android/media_codec_util.cc

Issue 2421963002: Blacklist Samsung Galaxy Star and Samsung Galaxy Win (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "media/base/android/media_codec_util.h" 5 #include "media/base/android/media_codec_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ConvertUTF8ToJavaString(env, android_mime_type); 86 ConvertUTF8ToJavaString(env, android_mime_type);
87 return Java_MediaCodecUtil_isDecoderSupportedForDevice(env, j_mime); 87 return Java_MediaCodecUtil_isDecoderSupportedForDevice(env, j_mime);
88 } 88 }
89 89
90 // static 90 // static
91 bool MediaCodecUtil::IsMediaCodecAvailable() { 91 bool MediaCodecUtil::IsMediaCodecAvailable() {
92 // Blacklist some devices on Jellybean as MediaCodec is buggy. 92 // Blacklist some devices on Jellybean as MediaCodec is buggy.
93 // http://crbug.com/365494, http://crbug.com/615872 93 // http://crbug.com/365494, http://crbug.com/615872
94 // Blacklist Lenovo A6600 / A6800 on KitKat, which tends to crash a lot. 94 // Blacklist Lenovo A6600 / A6800 on KitKat, which tends to crash a lot.
95 // See crbug.com/628059 . We include < K since they don't exist. 95 // See crbug.com/628059 . We include < K since they don't exist.
96 // GT-S5282 and GT-I8552 are for crbug.com/634920 .
96 if (base::android::BuildInfo::GetInstance()->sdk_int() <= 19) { 97 if (base::android::BuildInfo::GetInstance()->sdk_int() <= 19) {
97 std::string model(base::android::BuildInfo::GetInstance()->model()); 98 std::string model(base::android::BuildInfo::GetInstance()->model());
98 return model != "GT-I9100" && model != "GT-I9300" && model != "GT-N7000" && 99 return model != "GT-I9100" && model != "GT-I9300" && model != "GT-N7000" &&
99 model != "GT-N7100" && model != "A6600" && model != "A6800"; 100 model != "GT-N7100" && model != "A6600" && model != "A6800" &&
101 model != "GT-S5282" && model != "GT-I8552";
100 } 102 }
101 103
102 return true; 104 return true;
103 } 105 }
104 106
105 // static 107 // static
106 bool MediaCodecUtil::SupportsSetParameters() { 108 bool MediaCodecUtil::SupportsSetParameters() {
107 // MediaCodec.setParameters() is only available starting with K. 109 // MediaCodec.setParameters() is only available starting with K.
108 return base::android::BuildInfo::GetInstance()->sdk_int() >= 19; 110 return base::android::BuildInfo::GetInstance()->sdk_int() >= 19;
109 } 111 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 (sdk_int == 18 && ("OMX.SEC.avc.dec" == codec_name || 245 (sdk_int == 18 && ("OMX.SEC.avc.dec" == codec_name ||
244 "OMX.SEC.avc.dec.secure" == codec_name)) || 246 "OMX.SEC.avc.dec.secure" == codec_name)) ||
245 (sdk_int == 19 && 247 (sdk_int == 19 &&
246 base::StartsWith(base::android::BuildInfo::GetInstance()->model(), 248 base::StartsWith(base::android::BuildInfo::GetInstance()->model(),
247 "SM-G800", base::CompareCase::INSENSITIVE_ASCII) && 249 "SM-G800", base::CompareCase::INSENSITIVE_ASCII) &&
248 ("OMX.Exynos.avc.dec" == codec_name || 250 ("OMX.Exynos.avc.dec" == codec_name ||
249 "OMX.Exynos.avc.dec.secure" == codec_name)); 251 "OMX.Exynos.avc.dec.secure" == codec_name));
250 } 252 }
251 253
252 } // namespace media 254 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698