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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 2895293002: Android: tidy up outdated version checks. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/media_codec_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/android_video_decode_accelerator.cc
diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
index 40c8358a25a6cfe8dd175dd3389857784b6402eb..00cdca24fc49d516472d8d361cd522a06b532323 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -126,7 +126,7 @@ bool ShouldDeferSurfaceCreation(
return false;
return codec == kCodecH264 && codec_allocator->IsAnyRegisteredAVDA() &&
- platform_config.sdk_int <= 18;
+ platform_config.sdk_int <= base::android::SDK_VERSION_JELLY_BEAN_MR2;
}
std::unique_ptr<AndroidOverlay> CreateContentVideoViewOverlay(
« no previous file with comments | « media/base/android/media_codec_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698