• Home
  • Raw
  • Download

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()
310 static void get_pixel_formats_to_try(HDC dc, const SkWGLExtensions& extensions, in get_pixel_formats_to_try() argument
338 extensions.hasExtension(dc, "WGL_ARB_multisample")) { in get_pixel_formats_to_try()
345 extensions.choosePixelFormat(dc, msaaIAttrs.begin(), fAttrs, 64, formats, &num); in get_pixel_formats_to_try()
347 formatsToTry[0] = extensions.selectFormat(formats, num, dc, msaaSampleCount); in get_pixel_formats_to_try()
354 extensions.choosePixelFormat(dc, iAttrs.begin(), fAttrs, 1, format, &num); in get_pixel_formats_to_try()
357 static HGLRC create_gl_context(HDC dc, const SkWGLExtensions& extensions, in create_gl_context() argument
364 if (!extensions.hasExtension(dc, "WGL_EXT_create_context_es2_profile")) { in create_gl_context()
374 glrc = extensions.createContextAttribs(dc, shareContext, glesAttribs); in create_gl_context()
381 extensions.hasExtension(dc, "WGL_ARB_create_context")) { in create_gl_context()
399 glrc = extensions.createContextAttribs(dc, shareContext, coreProfileAttribs); in create_gl_context()
408 glrc = wglCreateContext(dc); in create_gl_context()
423 HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool deepColor, in SkCreateWGLContext() argument
426 if (!extensions.hasExtension(dc, "WGL_ARB_pixel_format")) { in SkCreateWGLContext()
433 get_pixel_formats_to_try(dc, extensions, true, msaaSampleCount, deepColor, pixelFormatsToTry); in SkCreateWGLContext()
438 DescribePixelFormat(dc, pixelFormatsToTry[f], sizeof(pfd), &pfd); in SkCreateWGLContext()
439 set = SetPixelFormat(dc, pixelFormatsToTry[f], &pfd); in SkCreateWGLContext()
446 return create_gl_context(dc, extensions, contextType, shareContext); in SkCreateWGLContext()
488 HDC dc = extensions.getPbufferDC(pbuf); in Create() local
489 if (dc) { in Create()
490 HGLRC glrc = create_gl_context(dc, extensions, contextType, shareContext); in Create()
492 return sk_sp<SkWGLPbufferContext>(new SkWGLPbufferContext(pbuf, dc, glrc)); in Create()
494 extensions.releasePbufferDC(pbuf, dc); in Create()
509 SkWGLPbufferContext::SkWGLPbufferContext(HPBUFFER pbuffer, HDC dc, HGLRC glrc) in SkWGLPbufferContext() argument
511 , fDC(dc) in SkWGLPbufferContext()