Lines Matching refs:extensions
290 static void get_pixel_formats_to_try(HDC dc, const SkWGLExtensions& extensions, in get_pixel_formats_to_try() argument
318 extensions.hasExtension(dc, "WGL_ARB_multisample")) { in get_pixel_formats_to_try()
325 extensions.choosePixelFormat(dc, msaaIAttrs.begin(), fAttrs, 64, formats, &num); in get_pixel_formats_to_try()
327 formatsToTry[0] = extensions.selectFormat(formats, num, dc, msaaSampleCount); in get_pixel_formats_to_try()
334 extensions.choosePixelFormat(dc, iAttrs.begin(), fAttrs, 1, format, &num); in get_pixel_formats_to_try()
337 static HGLRC create_gl_context(HDC dc, SkWGLExtensions extensions, SkWGLContextRequest contextType, in create_gl_context() argument
344 if (!extensions.hasExtension(dc, "WGL_EXT_create_context_es2_profile")) { in create_gl_context()
354 glrc = extensions.createContextAttribs(dc, shareContext, glesAttribs); in create_gl_context()
361 extensions.hasExtension(dc, "WGL_ARB_create_context")) { in create_gl_context()
379 glrc = extensions.createContextAttribs(dc, shareContext, coreProfileAttribs); in create_gl_context()
401 if (extensions.hasExtension(dc, "WGL_EXT_swap_control")) { in create_gl_context()
402 extensions.swapInterval(-1); in create_gl_context()
409 SkWGLExtensions extensions; in SkCreateWGLContext() local
410 if (!extensions.hasExtension(dc, "WGL_ARB_pixel_format")) { in SkCreateWGLContext()
417 get_pixel_formats_to_try(dc, extensions, true, msaaSampleCount, deepColor, pixelFormatsToTry); in SkCreateWGLContext()
430 return create_gl_context(dc, extensions, contextType, shareContext); in SkCreateWGLContext()
436 SkWGLExtensions extensions; in Create() local
437 if (!extensions.hasExtension(parentDC, "WGL_ARB_pixel_format") || in Create()
438 !extensions.hasExtension(parentDC, "WGL_ARB_pbuffer")) { in Create()
445 get_pixel_formats_to_try(parentDC, extensions, (0 != dblBuffer), msaaSampleCount, in Create()
448 HPBUFFER pbuf = extensions.createPbuffer(parentDC, pixelFormatsToTry[f], 1, 1, nullptr); in Create()
450 HDC dc = extensions.getPbufferDC(pbuf); in Create()
452 HGLRC glrc = create_gl_context(dc, extensions, contextType, shareContext); in Create()
456 extensions.releasePbufferDC(pbuf, dc); in Create()
458 extensions.destroyPbuffer(pbuf); in Create()