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

Unified Diff: webrtc/api/java/jni/androidmediaencoder_jni.cc

Issue 2067103002: Avoid unnecessary HW video encoder reconfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review feedback Created 4 years, 6 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 | webrtc/common_types.h » ('j') | webrtc/common_types.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/java/jni/androidmediaencoder_jni.cc
diff --git a/webrtc/api/java/jni/androidmediaencoder_jni.cc b/webrtc/api/java/jni/androidmediaencoder_jni.cc
index b76cfe7155e301d4646e6aaf63018707c9b59f63..47ceb690e423cfb22cfb1dbb1ce115208253a12a 100644
--- a/webrtc/api/java/jni/androidmediaencoder_jni.cc
+++ b/webrtc/api/java/jni/androidmediaencoder_jni.cc
@@ -416,7 +416,8 @@ int32_t MediaCodecVideoEncoder::InitEncode(
RTC_FROM_HERE,
Bind(&MediaCodecVideoEncoder::InitEncodeOnCodecThread, this, init_width,
init_height, codec_settings->startBitrate,
- codec_settings->maxFramerate, false /* use_surface */));
+ codec_settings->maxFramerate,
+ codec_settings->encode_from_texture /* use_surface */));
tommi 2016/06/15 21:00:39 remove the comment?
skvlad 2016/06/15 22:10:36 Done.
}
int32_t MediaCodecVideoEncoder::Encode(
« no previous file with comments | « no previous file | webrtc/common_types.h » ('j') | webrtc/common_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698