• Home
  • Raw
  • Download

Lines Matching refs:ctxInfo

74 void GrGLCaps::init(const GrGLContextInfo& ctxInfo) {  in init()  argument
77 if (!ctxInfo.isInitialized()) { in init()
81 const GrGLInterface* gli = ctxInfo.interface(); in init()
82 GrGLBinding binding = ctxInfo.binding(); in init()
83 GrGLVersion version = ctxInfo.version(); in init()
99 fRGBA8RenderbufferSupport = ctxInfo.hasExtension("GL_OES_rgb8_rgba8") || in init()
100 ctxInfo.hasExtension("GL_ARM_rgba8"); in init()
105 ctxInfo.hasExtension("GL_EXT_bgra"); in init()
107 if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) { in init()
109 } else if (ctxInfo.hasExtension("GL_EXT_texture_format_BGRA8888")) { in init()
119 ctxInfo.hasExtension("GL_ARB_texture_swizzle"); in init()
130 fUnpackRowLengthSupport =ctxInfo.hasExtension("GL_EXT_unpack_subimage"); in init()
131 fUnpackFlipYSupport = ctxInfo.hasExtension("GL_CHROMIUM_flipy"); in init()
135 ctxInfo.hasExtension("GL_ANGLE_pack_reverse_row_order"); in init()
139 ctxInfo.hasExtension("GL_ANGLE_texture_usage"); in init()
144 ctxInfo.hasExtension("GL_ARB_texture_storage") || in init()
145 ctxInfo.hasExtension("GL_EXT_texture_storage"); in init()
150 ctxInfo.hasExtension("GL_ARB_texture_rg"); in init()
152 fTextureRedSupport = ctxInfo.hasExtension("GL_EXT_texture_rg"); in init()
156 ctxInfo.hasExtension("GL_ARB_imaging"); in init()
165 if (kIntel_GrGLVendor != ctxInfo.vendor()) { in init()
166 fFragCoordsConventionSupport = ctxInfo.glslGeneration() >= k150_GrGLSLGeneration || in init()
167 ctxInfo.hasExtension("GL_ARB_fragment_coord_conventions"); in init()
170 this->initFSAASupport(ctxInfo); in init()
171 this->initStencilFormats(ctxInfo); in init()
219 void GrGLCaps::initFSAASupport(const GrGLContextInfo& ctxInfo) { in initFSAASupport() argument
222 if (kDesktop_GrGLBinding != ctxInfo.binding()) { in initFSAASupport()
223 if (ctxInfo.hasExtension("GL_CHROMIUM_framebuffer_multisample")) { in initFSAASupport()
227 } else if (ctxInfo.hasExtension("GL_APPLE_framebuffer_multisample")) { in initFSAASupport()
231 if ((ctxInfo.version() >= GR_GL_VER(3,0)) || in initFSAASupport()
232 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { in initFSAASupport()
234 } else if (ctxInfo.hasExtension("GL_EXT_framebuffer_multisample") && in initFSAASupport()
235 ctxInfo.hasExtension("GL_EXT_framebuffer_blit")) { in initFSAASupport()
242 if (ctxInfo.hasExtension("GL_NV_framebuffer_multisample_coverage")) { in initFSAASupport()
245 GR_GL_GetIntegerv(ctxInfo.interface(), in initFSAASupport()
249 GR_GL_GetIntegerv(ctxInfo.interface(), in initFSAASupport()
261 GR_GL_GetIntegerv(ctxInfo.interface(), in initFSAASupport()
294 void GrGLCaps::initStencilFormats(const GrGLContextInfo& ctxInfo) { in initStencilFormats() argument
311 if (kDesktop_GrGLBinding == ctxInfo.binding()) { in initStencilFormats()
313 ctxInfo.version() >= GR_GL_VER(3,0) || in initStencilFormats()
314 ctxInfo.hasExtension("GL_EXT_packed_depth_stencil") || in initStencilFormats()
315 ctxInfo.hasExtension("GL_ARB_framebuffer_object"); in initStencilFormats()
336 if (ctxInfo.hasExtension("GL_OES_packed_depth_stencil")) { in initStencilFormats()
339 if (ctxInfo.hasExtension("GL_OES_stencil4")) { in initStencilFormats()