Make HardwareVideo*Factory ctors that take fallbackToSoftware public.
https://webrtc-review.googlesource.com/c/src/+/17480 changed the default behavior of HardwareVideoEncoderFactory and HardwareVideoDecoderFactory without providing any way to maintain the previous behavior. This breaks current users. Making these constructors public at least gives existing users a way to maintain the previous behavior. Bug: webrtc:7925 Change-Id: Id8f0ec25026592f5e9096ac5f39fdda22993ff09 Reviewed-on: https://webrtc-review.googlesource.com/22763 Reviewed-by: Anders Carlsson <andersc@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Bjorn Mellem <mellem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20675}
This commit is contained in:
@ -50,7 +50,7 @@ public class HardwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
sharedContext, enableIntelVp8Encoder, enableH264HighProfile, true /* fallbackToSoftware */);
|
||||
}
|
||||
|
||||
HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder,
|
||||
public HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder,
|
||||
boolean enableH264HighProfile, boolean fallbackToSoftware) {
|
||||
// Texture mode requires EglBase14.
|
||||
if (sharedContext instanceof EglBase14.Context) {
|
||||
|
Reference in New Issue
Block a user