• 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()
301 static void get_pixel_formats_to_try(HDC dc, const SkWGLExtensions& extensions, in get_pixel_formats_to_try() argument
329 extensions.hasExtension(dc, "WGL_ARB_multisample")) { in get_pixel_formats_to_try()
336 extensions.choosePixelFormat(dc, msaaIAttrs.begin(), fAttrs, 64, formats, &num); in get_pixel_formats_to_try()
338 formatsToTry[0] = extensions.selectFormat(formats, num, dc, msaaSampleCount); in get_pixel_formats_to_try()
345 extensions.choosePixelFormat(dc, iAttrs.begin(), fAttrs, 1, format, &num); in get_pixel_formats_to_try()
348 static HGLRC create_gl_context(HDC dc, const SkWGLExtensions& extensions, in create_gl_context() argument
355 if (!extensions.hasExtension(dc, "WGL_EXT_create_context_es2_profile")) { in create_gl_context()
365 glrc = extensions.createContextAttribs(dc, shareContext, glesAttribs); in create_gl_context()
372 extensions.hasExtension(dc, "WGL_ARB_create_context")) { in create_gl_context()
390 glrc = extensions.createContextAttribs(dc, shareContext, coreProfileAttribs); in create_gl_context()
399 glrc = wglCreateContext(dc); in create_gl_context()
414 HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool deepColor, in SkCreateWGLContext() argument
417 if (!extensions.hasExtension(dc, "WGL_ARB_pixel_format")) { in SkCreateWGLContext()
424 get_pixel_formats_to_try(dc, extensions, true, msaaSampleCount, deepColor, pixelFormatsToTry); in SkCreateWGLContext()
429 DescribePixelFormat(dc, pixelFormatsToTry[f], sizeof(pfd), &pfd); in SkCreateWGLContext()
430 set = SetPixelFormat(dc, pixelFormatsToTry[f], &pfd); in SkCreateWGLContext()
437 return create_gl_context(dc, extensions, contextType, shareContext); in SkCreateWGLContext()
479 HDC dc = extensions.getPbufferDC(pbuf); in Create() local
480 if (dc) { in Create()
481 HGLRC glrc = create_gl_context(dc, extensions, contextType, shareContext); in Create()
483 return sk_sp<SkWGLPbufferContext>(new SkWGLPbufferContext(pbuf, dc, glrc)); in Create()
485 extensions.releasePbufferDC(pbuf, dc); in Create()
500 SkWGLPbufferContext::SkWGLPbufferContext(HPBUFFER pbuffer, HDC dc, HGLRC glrc) in SkWGLPbufferContext() argument
502 , fDC(dc) in SkWGLPbufferContext()