Lines Matching refs:extensions
291 static void get_pixel_formats_to_try(HDC dc, const SkWGLExtensions& extensions, in get_pixel_formats_to_try() argument
309 extensions.hasExtension(dc, "WGL_ARB_multisample")) { in get_pixel_formats_to_try()
323 extensions.choosePixelFormat(dc, msaaIAttrs, fAttrs, 64, formats, &num); in get_pixel_formats_to_try()
325 formatsToTry[0] = extensions.selectFormat(formats, num, dc, msaaSampleCount); in get_pixel_formats_to_try()
331 extensions.choosePixelFormat(dc, iAttrs, fAttrs, 1, format, &num); in get_pixel_formats_to_try()
334 static HGLRC create_gl_context(HDC dc, SkWGLExtensions extensions, SkWGLContextRequest contextType)… in create_gl_context() argument
340 if (!extensions.hasExtension(dc, "WGL_EXT_create_context_es2_profile")) { in create_gl_context()
350 glrc = extensions.createContextAttribs(dc, nullptr, glesAttribs); in create_gl_context()
357 extensions.hasExtension(dc, "WGL_ARB_create_context")) { in create_gl_context()
375 glrc = extensions.createContextAttribs(dc, nullptr, coreProfileAttribs); in create_gl_context()
391 if (extensions.hasExtension(dc, "WGL_EXT_swap_control")) { in create_gl_context()
392 extensions.swapInterval(-1); in create_gl_context()
398 SkWGLExtensions extensions; in SkCreateWGLContext() local
399 if (!extensions.hasExtension(dc, "WGL_ARB_pixel_format")) { in SkCreateWGLContext()
406 get_pixel_formats_to_try(dc, extensions, true, msaaSampleCount, pixelFormatsToTry); in SkCreateWGLContext()
419 return create_gl_context(dc, extensions, contextType);} in SkCreateWGLContext()
423 SkWGLExtensions extensions; in Create() local
424 if (!extensions.hasExtension(parentDC, "WGL_ARB_pixel_format") || in Create()
425 !extensions.hasExtension(parentDC, "WGL_ARB_pbuffer")) { in Create()
432 get_pixel_formats_to_try(parentDC, extensions, (0 != dblBuffer), msaaSampleCount, in Create()
435 HPBUFFER pbuf = extensions.createPbuffer(parentDC, pixelFormatsToTry[f], 1, 1, nullptr); in Create()
437 HDC dc = extensions.getPbufferDC(pbuf); in Create()
439 HGLRC glrc = create_gl_context(dc, extensions, contextType); in Create()
443 extensions.releasePbufferDC(pbuf, dc); in Create()
445 extensions.destroyPbuffer(pbuf); in Create()