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

Unified Diff: content/renderer/media/gpu/rtc_video_decoder.cc

Issue 2375153003: Update threshold for RTCVideoEncoder SW fallback (Closed)
Patch Set: Change threshold. Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/gpu/rtc_video_decoder.cc
diff --git a/content/renderer/media/gpu/rtc_video_decoder.cc b/content/renderer/media/gpu/rtc_video_decoder.cc
index 19881ae5c5a228c5a820b1ed3687d04f2ccdba94..47aae3eee3646c58c554b1d42920a3190bd869db 100644
--- a/content/renderer/media/gpu/rtc_video_decoder.cc
+++ b/content/renderer/media/gpu/rtc_video_decoder.cc
@@ -35,13 +35,9 @@ const int32_t RTCVideoDecoder::ID_LAST = 0x3FFFFFFF;
const int32_t RTCVideoDecoder::ID_HALF = 0x20000000;
const int32_t RTCVideoDecoder::ID_INVALID = -1;
-// Android vp8, vp9 decoders are quite finicky and often out of date, so give
-// them much less leeway on errors than other platforms.
-#if defined(OS_ANDROID)
+// Number of consecutive frames that can be lost due to a VDA error before
+// falling back to SW implementation.
const uint32_t kNumVDAErrorsBeforeSWFallback = 5;
-#else
-const uint32_t kNumVDAErrorsBeforeSWFallback = 50;
-#endif
// Maximum number of concurrent VDA::Decode() operations RVD will maintain.
// Higher values allow better pipelining in the GPU, but also require more
« 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