Lines Matching refs:dc
18 bool SkWGLExtensions::hasExtension(HDC dc, const char* ext) const { in hasExtension() argument
25 const char* extensionString = this->getExtensionsString(dc); in hasExtension()
127 HDC dc, in selectFormat() argument
143 this->getPixelFormatAttribiv(dc, in selectFormat()
303 static void get_pixel_formats_to_try(HDC dc, const SkWGLExtensions& extensions, in get_pixel_formats_to_try() argument
331 extensions.hasExtension(dc, "WGL_ARB_multisample")) { in get_pixel_formats_to_try()
338 extensions.choosePixelFormat(dc, msaaIAttrs.begin(), fAttrs, 64, formats, &num); in get_pixel_formats_to_try()
340 formatsToTry[0] = extensions.selectFormat(formats, num, dc, msaaSampleCount); in get_pixel_formats_to_try()
347 extensions.choosePixelFormat(dc, iAttrs.begin(), fAttrs, 1, format, &num); in get_pixel_formats_to_try()
350 static HGLRC create_gl_context(HDC dc, const SkWGLExtensions& extensions, in create_gl_context() argument
357 if (!extensions.hasExtension(dc, "WGL_EXT_create_context_es2_profile")) { in create_gl_context()
367 glrc = extensions.createContextAttribs(dc, shareContext, glesAttribs); in create_gl_context()
374 extensions.hasExtension(dc, "WGL_ARB_create_context")) { in create_gl_context()
392 glrc = extensions.createContextAttribs(dc, shareContext, coreProfileAttribs); in create_gl_context()
401 glrc = wglCreateContext(dc); in create_gl_context()
414 if (extensions.hasExtension(dc, "WGL_EXT_swap_control")) { in create_gl_context()
420 HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool deepColor, in SkCreateWGLContext() argument
423 if (!extensions.hasExtension(dc, "WGL_ARB_pixel_format")) { in SkCreateWGLContext()
430 get_pixel_formats_to_try(dc, extensions, true, msaaSampleCount, deepColor, pixelFormatsToTry); in SkCreateWGLContext()
435 DescribePixelFormat(dc, pixelFormatsToTry[f], sizeof(pfd), &pfd); in SkCreateWGLContext()
436 set = SetPixelFormat(dc, pixelFormatsToTry[f], &pfd); in SkCreateWGLContext()
443 return create_gl_context(dc, extensions, contextType, shareContext); in SkCreateWGLContext()
485 HDC dc = extensions.getPbufferDC(pbuf); in Create() local
486 if (dc) { in Create()
487 HGLRC glrc = create_gl_context(dc, extensions, contextType, shareContext); in Create()
489 return sk_sp<SkWGLPbufferContext>(new SkWGLPbufferContext(pbuf, dc, glrc)); in Create()
491 extensions.releasePbufferDC(pbuf, dc); in Create()
506 SkWGLPbufferContext::SkWGLPbufferContext(HPBUFFER pbuffer, HDC dc, HGLRC glrc) in SkWGLPbufferContext() argument
508 , fDC(dc) in SkWGLPbufferContext()