@@ -50,27 +50,6 @@ public class UltralightConfig {
5050 @ Native
5151 private String cachePath ;
5252
53- /**
54- * When enabled, each View will be rendered to an offscreen GPU texture
55- * using the GPU driver set in Platform::set_gpu_driver. You can fetch
56- * details for the texture via View::render_target.
57- * <p>
58- * When disabled (the default), each View will be rendered to an offscreen
59- * pixel buffer. This pixel buffer can optionally be provided by the user--
60- * for more info see <Ultralight/platform/Surface.h> and View::surface.
61- */
62- @ Native
63- private boolean useGpuRenderer = false ;
64-
65- /**
66- * The amount that the application DPI has been scaled (200% = 2.0).
67- * This should match the device scale set for the current monitor.
68- * <p>
69- * Note: Device scales are rounded to nearest 1/8th (eg, 0.125).
70- */
71- @ Native
72- private double deviceScale = 1.0 ;
73-
7453 /**
7554 * The winding order for front-facing triangles. @see FaceWinding
7655 * <p>
@@ -79,18 +58,6 @@ public class UltralightConfig {
7958 @ Native
8059 private FaceWinding faceWinding = FaceWinding .COUNTER_CLOCKWISE ;
8160
82- /**
83- * Whether or not images should be enabled.
84- */
85- @ Native
86- private boolean enableImages = true ;
87-
88- /**
89- * Whether or not JavaScript should be enabled.
90- */
91- @ Native
92- private boolean enableJavascript = true ;
93-
9461 /**
9562 * The hinting algorithm to use when rendering fonts.
9663 *
@@ -106,43 +73,6 @@ public class UltralightConfig {
10673 @ Native
10774 private double fontGamma = 1.8 ;
10875
109- /**
110- * Default font-family to use.
111- */
112- @ NativeType ("ultralight::String16" )
113- @ Native
114- private String fontFamilyStandard = "Times New Roman" ;
115-
116- /**
117- * Default font-family to use for fixed fonts. (pre/code)
118- */
119- @ NativeType ("ultralight::String16" )
120- @ Native
121- private String fontFamilyFixed = "Courier New" ;
122-
123- /**
124- * Default font-family to use for serif fonts.
125- */
126- @ NativeType ("ultralight::String16" )
127- @ Native
128- private String fontFamilySerif = "Times New Roman" ;
129-
130- /**
131- * Default font-family to use for sans-serif fonts.
132- */
133- @ NativeType ("ultralight::String16" )
134- @ Native
135- private String fontFamilySansSerif = "Arial" ;
136-
137- /**
138- * Default user-agent string.
139- */
140- @ NativeType ("ultralight::String16" )
141- @ Native
142- private String userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
143- "AppleWebKit/608.3.10 (KHTML, like Gecko) " +
144- "Ultralight/1.2.0 Safari/608.3.10" ;
145-
14676 /**
14777 * Default user stylesheet. You should set this to your own custom CSS
14878 * string to define default styles for various DOM elements, scrollbars,
@@ -259,30 +189,6 @@ public UltralightConfig cachePath(String cachePath) {
259189 return this ;
260190 }
261191
262- /**
263- * Sets the useGpuRenderer field of this instance.
264- *
265- * @param useGpuRenderer The new value of the field
266- * @return this
267- * @see #useGpuRenderer
268- */
269- public UltralightConfig useGpuRenderer (boolean useGpuRenderer ) {
270- this .useGpuRenderer = useGpuRenderer ;
271- return this ;
272- }
273-
274- /**
275- * Sets the deviceScale field of this instance.
276- *
277- * @param deviceScale The new value of the field
278- * @return this
279- * @see #deviceScale
280- */
281- public UltralightConfig deviceScale (double deviceScale ) {
282- this .deviceScale = deviceScale ;
283- return this ;
284- }
285-
286192 /**
287193 * Sets the faceWinding field of this instance.
288194 *
@@ -295,30 +201,6 @@ public UltralightConfig faceWinding(FaceWinding faceWinding) {
295201 return this ;
296202 }
297203
298- /**
299- * Sets the enableImages field of this instance.
300- *
301- * @param enableImages The new value of the field
302- * @return this
303- * @see #enableImages
304- */
305- public UltralightConfig enableImages (boolean enableImages ) {
306- this .enableImages = enableImages ;
307- return this ;
308- }
309-
310- /**
311- * Sets the enableJavascript field of this instance.
312- *
313- * @param enableJavascript The new value of the field
314- * @return this
315- * @see #enableJavascript
316- */
317- public UltralightConfig enableJavascript (boolean enableJavascript ) {
318- this .enableJavascript = enableJavascript ;
319- return this ;
320- }
321-
322204 /**
323205 * Sets the fontHinting field of this instance.
324206 *
@@ -343,66 +225,6 @@ public UltralightConfig fontGamma(double fontGamma) {
343225 return this ;
344226 }
345227
346- /**
347- * Sets the fontFamilyStandard field of this instance.
348- *
349- * @param fontFamilyStandard The new value of the field
350- * @return this
351- * @see #fontFamilyStandard
352- */
353- public UltralightConfig fontFamilyStandard (String fontFamilyStandard ) {
354- this .fontFamilyStandard = fontFamilyStandard ;
355- return this ;
356- }
357-
358- /**
359- * Sets the fontFamilyFixed field of this instance.
360- *
361- * @param fontFamilyFixed The new value of the field
362- * @return this
363- * @see #fontFamilyFixed
364- */
365- public UltralightConfig fontFamilyFixed (String fontFamilyFixed ) {
366- this .fontFamilyFixed = fontFamilyFixed ;
367- return this ;
368- }
369-
370- /**
371- * Sets the fontFamilySerif field of this instance.
372- *
373- * @param fontFamilySerif The new value of the field
374- * @return this
375- * @see #fontFamilySerif
376- */
377- public UltralightConfig fontFamilySerif (String fontFamilySerif ) {
378- this .fontFamilySerif = fontFamilySerif ;
379- return this ;
380- }
381-
382- /**
383- * Sets the fontFamilySansSerif field of this instance.
384- *
385- * @param fontFamilySansSerif The new value of the field
386- * @return this
387- * @see #fontFamilySansSerif
388- */
389- public UltralightConfig fontFamilySansSerif (String fontFamilySansSerif ) {
390- this .fontFamilySansSerif = fontFamilySansSerif ;
391- return this ;
392- }
393-
394- /**
395- * Sets the userAgent field of this instance.
396- *
397- * @param userAgent The new value of the field
398- * @return this
399- * @see #userAgent
400- */
401- public UltralightConfig userAgent (String userAgent ) {
402- this .userAgent = userAgent ;
403- return this ;
404- }
405-
406228 /**
407229 * Sets the userStylesheet field of this instance.
408230 *
0 commit comments