Lines Matching refs:attrs
13 function makeWebGLContext(canvas, attrs) { argument
16 alpha: get(attrs, 'alpha', 1),
17 depth: get(attrs, 'depth', 1),
18 stencil: get(attrs, 'stencil', 0),
19 antialias: get(attrs, 'antialias', 1),
20 premultipliedAlpha: get(attrs, 'premultipliedAlpha', 1),
21 preserveDrawingBuffer: get(attrs, 'preserveDrawingBuffer', 0),
22 preferLowPowerToHighPerformance: get(attrs, 'preferLowPowerToHighPerformance', 0),
23 failIfMajorPerformanceCaveat: get(attrs, 'failIfMajorPerformanceCaveat', 0),
24 majorVersion: get(attrs, 'majorVersion', 1),
25 minorVersion: get(attrs, 'minorVersion', 0),
26 enableExtensionsByDefault: get(attrs, 'enableExtensionsByDefault', 1),
27 explicitSwapControl: get(attrs, 'explicitSwapControl', 0),
28 renderViaOffscreenBackBuffer: get(attrs, 'renderViaOffscreenBackBuffer', 0),
44 CanvasKit.GetWebGLContext = function(canvas, attrs) { argument
45 return makeWebGLContext(canvas, attrs);