• Home
  • Raw
  • Download

Lines Matching refs:ctxInfo

93 bool GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {  in init()  argument
96 if (!ctxInfo.isInitialized()) { in init()
100 GrGLStandard standard = ctxInfo.standard(); in init()
101 GrGLVersion version = ctxInfo.version(); in init()
133 ctxInfo.hasExtension("GL_OES_rgb8_rgba8") || in init()
134 ctxInfo.hasExtension("GL_ARM_rgba8"); in init()
139 ctxInfo.hasExtension("GL_ARB_texture_swizzle"); in init()
151 ctxInfo.hasExtension("GL_EXT_unpack_subimage"); in init()
152 fUnpackFlipYSupport = ctxInfo.hasExtension("GL_CHROMIUM_flipy"); in init()
154 ctxInfo.hasExtension("GL_NV_pack_subimage"); in init()
156 ctxInfo.hasExtension("GL_ANGLE_pack_reverse_row_order"); in init()
160 ctxInfo.hasExtension("GL_ANGLE_texture_usage"); in init()
165 ctxInfo.hasExtension("GL_ARB_texture_storage") || in init()
166 ctxInfo.hasExtension("GL_EXT_texture_storage"); in init()
170 kQualcomm_GrGLVendor != ctxInfo.vendor()) || in init()
171 ctxInfo.hasExtension("GL_EXT_texture_storage"); in init()
177 if (ctxInfo.isMesa()) { in init()
178 fTextureRedSupport = ctxInfo.hasExtension("GL_ARB_texture_rg"); in init()
181 ctxInfo.hasExtension("GL_ARB_texture_rg"); in init()
185 ctxInfo.hasExtension("GL_EXT_texture_rg"); in init()
189 ctxInfo.hasExtension("GL_ARB_imaging"); in init()
198 if (kIntel_GrGLVendor != ctxInfo.vendor()) { in init()
199 fFragCoordsConventionSupport = ctxInfo.glslGeneration() >= k150_GrGLSLGeneration || in init()
200 ctxInfo.hasExtension("GL_ARB_fragment_coord_conventions"); in init()
208 (kARM_GrGLVendor == ctxInfo.vendor() || kImagination_GrGLVendor == ctxInfo.vendor())) { in init()
214 ctxInfo.hasExtension("GL_ARB_invalidate_subdata")) { in init()
217 } else if (ctxInfo.hasExtension("GL_EXT_discard_framebuffer")) { in init()
222 if (kARM_GrGLVendor == ctxInfo.vendor() || kImagination_GrGLVendor == ctxInfo.vendor()) { in init()
228 ctxInfo.hasExtension("GL_ARB_vertex_array_object"); in init()
231 ctxInfo.hasExtension("GL_OES_vertex_array_object"); in init()
235 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { in init()
237 } else if (ctxInfo.hasExtension("GL_NV_shader_framebuffer_fetch")) { in init()
243 fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); in init()
245 this->initFSAASupport(ctxInfo, gli); in init()
246 this->initStencilFormats(ctxInfo); in init()
255 fTwoSidedStencilSupport = (ctxInfo.version() >= GR_GL_VER(2,0)); in init()
257 fStencilWrapOpsSupport = (ctxInfo.version() >= GR_GL_VER(1,4)) || in init()
258 ctxInfo.hasExtension("GL_EXT_stencil_wrap"); in init()
268 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_map_buffer_range")) { in init()
277 if (ctxInfo.hasExtension("GL_CHROMIUM_map_sub")) { in init()
280 } else if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_map_buffer_range")) { in init()
283 } else if (ctxInfo.hasExtension("GL_OES_mapbuffer")) { in init()
290 SkASSERT(ctxInfo.version() >= GR_GL_VER(2,0) || in init()
291 ctxInfo.hasExtension("GL_ARB_texture_non_power_of_two")); in init()
297 fNPOTTextureTileSupport = ctxInfo.version() >= GR_GL_VER(3,0) || in init()
298 ctxInfo.hasExtension("GL_OES_texture_npot"); in init()
303 fMipMapSupport = fNPOTTextureTileSupport || ctxInfo.hasExtension("GL_IMG_texture_npot"); in init()
314 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering") && in init()
315 ctxInfo.hasExtension("GL_EXT_direct_state_access"); in init()
317 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); in init()
322 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && in init()
323 kQualcomm_GrGLVendor != ctxInfo.vendor(); in init()
327 fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3,3) || in init()
328 ctxInfo.hasExtension("GL_ARB_blend_func_extended"); in init()
331 fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3,2) && in init()
332 ctxInfo.glslGeneration() >= k150_GrGLSLGeneration; in init()
334 fShaderDerivativeSupport = ctxInfo.hasExtension("GL_OES_standard_derivatives"); in init()
343 this->initConfigTexturableTable(ctxInfo, gli); in init()
344 this->initConfigRenderableTable(ctxInfo); in init()
349 void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { in initConfigRenderableTable() argument
379 GrGLStandard standard = ctxInfo.standard(); in initConfigRenderableTable()
389 if (ctxInfo.version() >= GR_GL_VER(3,0) || in initConfigRenderableTable()
390 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { in initConfigRenderableTable()
420 if (ctxInfo.hasExtension("GL_CHROMIUM_renderbuffer_format_BGRA8888")) { in initConfigRenderableTable()
437 void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { in initConfigTexturableTable() argument
438 GrGLStandard standard = ctxInfo.standard(); in initConfigTexturableTable()
439 GrGLVersion version = ctxInfo.version(); in initConfigTexturableTable()
464 version >= GR_GL_VER(1,2) || ctxInfo.hasExtension("GL_EXT_bgra"); in initConfigTexturableTable()
466 if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) { in initConfigTexturableTable()
468 } else if (ctxInfo.hasExtension("GL_EXT_texture_format_BGRA8888")) { in initConfigTexturableTable()
489 ctxInfo.hasExtension("GL_ARB_ES3_compatibility")); in initConfigTexturableTable()
493 ctxInfo.hasExtension("GL_OES_compressed_ETC1_RGB8_texture") || in initConfigTexturableTable()
495 (ctxInfo.hasExtension("GL_OES_compressed_ETC2_RGB8_texture") && in initConfigTexturableTable()
496 ctxInfo.hasExtension("GL_OES_compressed_ETC2_RGBA8_texture"))); in initConfigTexturableTable()
503 (ctxInfo.hasExtension("GL_EXT_texture_compression_latc") || in initConfigTexturableTable()
504 ctxInfo.hasExtension("GL_NV_texture_compression_latc")); in initConfigTexturableTable()
515 ctxInfo.hasExtension("GL_EXT_texture_compression_rgtc") || in initConfigTexturableTable()
516 ctxInfo.hasExtension("GL_ARB_texture_compression_rgtc"); in initConfigTexturableTable()
526 hasLATC = ctxInfo.hasExtension("GL_AMD_compressed_3DC_texture"); in initConfigTexturableTable()
565 void GrGLCaps::initFSAASupport(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { in initFSAASupport() argument
568 if (kGL_GrGLStandard != ctxInfo.standard()) { in initFSAASupport()
571 if (ctxInfo.hasExtension("GL_EXT_multisampled_render_to_texture")) { in initFSAASupport()
573 } else if (ctxInfo.hasExtension("GL_IMG_multisampled_render_to_texture")) { in initFSAASupport()
575 } else if (ctxInfo.version() >= GR_GL_VER(3,0)) { in initFSAASupport()
577 } else if (ctxInfo.hasExtension("GL_CHROMIUM_framebuffer_multisample")) { in initFSAASupport()
581 } else if (ctxInfo.hasExtension("GL_APPLE_framebuffer_multisample")) { in initFSAASupport()
585 if ((ctxInfo.version() >= GR_GL_VER(3,0)) || in initFSAASupport()
586 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { in initFSAASupport()
588 } else if (ctxInfo.hasExtension("GL_EXT_framebuffer_multisample") && in initFSAASupport()
589 ctxInfo.hasExtension("GL_EXT_framebuffer_blit")) { in initFSAASupport()
599 void GrGLCaps::initStencilFormats(const GrGLContextInfo& ctxInfo) { in initStencilFormats() argument
616 if (kGL_GrGLStandard == ctxInfo.standard()) { in initStencilFormats()
618 ctxInfo.version() >= GR_GL_VER(3,0) || in initStencilFormats()
619 ctxInfo.hasExtension("GL_EXT_packed_depth_stencil") || in initStencilFormats()
620 ctxInfo.hasExtension("GL_ARB_framebuffer_object"); in initStencilFormats()
641 if (ctxInfo.version() >= GR_GL_VER(3,0) || in initStencilFormats()
642 ctxInfo.hasExtension("GL_OES_packed_depth_stencil")) { in initStencilFormats()
645 if (ctxInfo.hasExtension("GL_OES_stencil4")) { in initStencilFormats()