Convert getDefaultRenderSettings into default constructor

Allows us to completely get rid of the custom Gson instance and is more
idiomatic anyway.
This commit is contained in:
Jonas Herzig
2021-08-15 11:45:23 +02:00
parent 9626a4c442
commit 463c51be85
2 changed files with 29 additions and 12 deletions

View File

@@ -174,6 +174,32 @@ public class RenderSettings {
private final boolean highPerformance;
public RenderSettings() {
this(
RenderSettings.RenderMethod.DEFAULT,
RenderSettings.EncodingPreset.MP4_CUSTOM,
1920,
1080,
60,
20 << 20,
null,
true,
false,
false,
false,
null,
360,
180,
false,
false,
false,
RenderSettings.AntiAliasing.NONE,
"",
RenderSettings.EncodingPreset.MP4_CUSTOM.getValue(),
false
);
}
public RenderSettings(
RenderMethod renderMethod,
EncodingPreset encodingPreset,