Lines Matching refs:standard

33     fStandard = ctxInfo.standard();
96 GrGLStandard standard = ctxInfo.standard();
97 // standard can be unused (optimized away) if SK_ASSUME_GL_ES is set
98 sk_ignore_unused_variable(standard);
101 if (GR_IS_GR_GL(standard)) {
110 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
120 if (GR_IS_GR_GL(standard)) {
124 } else if (GR_IS_GR_GL_ES(standard)) {
131 } else if (GR_IS_GR_WEBGL(standard)) {
147 fTextureUsageSupport = GR_IS_GR_GL_ES(standard) &&
150 if (GR_IS_GR_GL(standard)) {
154 } else if (GR_IS_GR_GL_ES(standard)) {
156 } else if (GR_IS_GR_WEBGL(standard)) {
160 if (GR_IS_GR_GL(standard)) {
163 } else if (GR_IS_GR_GL_ES(standard)) {
165 } else if (GR_IS_GR_WEBGL(standard)) {
169 fImagingSupport = GR_IS_GR_GL(standard) &&
172 if (((GR_IS_GR_GL(standard) && version >= GR_GL_VER(4,3)) ||
173 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0)) ||
182 if (GR_IS_GR_GL_ES(standard)) {
196 if (GR_IS_GR_GL(standard)) {
200 } else if (GR_IS_GR_GL_ES(standard)) {
203 } else if (GR_IS_GR_WEBGL(standard)) {
209 if (GR_IS_GR_GL(standard) && version >= GR_GL_VER(4,3)) {
211 } else if (GR_IS_GR_GL_ES(standard)) {
213 } else if (GR_IS_GR_WEBGL(standard)) {
217 if (GR_IS_GR_GL(standard)) {
220 else if (GR_IS_GR_GL_ES(standard)) {
222 } else if (GR_IS_GR_WEBGL(standard)) {
226 if (GR_IS_GR_GL(standard)) {
228 } else if (GR_IS_GR_GL_ES(standard)) {
230 } else if (GR_IS_GR_WEBGL(standard)) {
234 if (GR_IS_GR_GL(standard)) {
241 } else if (GR_IS_GR_GL_ES(standard)) {
247 } else if (GR_IS_GR_WEBGL(standard)) {
253 if (GR_IS_GR_GL_ES(standard) && version < GR_GL_VER(3, 0)) {
259 if (GR_IS_GR_GL_ES(standard) && ctxInfo.isOverCommandBuffer() && version < GR_GL_VER(3, 0)) {
266 if (GR_IS_GR_GL(standard)) {
270 } else if (GR_IS_GR_GL_ES(standard)) {
274 } else if (GR_IS_GR_WEBGL(standard)) {
280 if (GR_IS_GR_GL(standard)) {
285 } else if (GR_IS_GR_GL_ES(standard)) {
288 } else if (GR_IS_GR_WEBGL(standard)) {
293 if (GR_IS_GR_GL(standard)) {
298 } else if (GR_IS_GR_GL_ES(standard)) {
305 } else if (GR_IS_GR_WEBGL(standard)) {
310 if (GR_IS_GR_GL(standard)) {
314 } else if (GR_IS_GR_GL_ES(standard)) {
318 } else if (GR_IS_GR_WEBGL(standard)) {
322 if (GR_IS_GR_GL(standard)) {
325 } else if (GR_IS_GR_GL_ES(standard)) {
330 } else if (GR_IS_GR_WEBGL(standard)) {
337 fUseBufferDataNullHint = !GR_IS_GR_WEBGL(standard) && !ctxInfo.isOverCommandBuffer();
339 if (GR_IS_GR_GL(standard)) {
342 } else if (GR_IS_GR_GL_ES(standard)) {
344 } else if (GR_IS_GR_WEBGL(standard)) {
352 if (GR_IS_GR_GL(standard)) {
356 } else if (GR_IS_GR_GL_ES(standard)) {
363 if (GR_IS_GR_WEBGL(standard)) {
380 if (GR_IS_GR_GL(standard)) {
393 } else if (GR_IS_GR_GL_ES(standard)) {
403 } else if (GR_IS_GR_WEBGL(standard)) {
416 if (GR_IS_GR_GL(standard)) {
420 if (GR_IS_GR_GL(standard)) {
423 } else if (GR_IS_GR_GL_ES(standard)) {
426 } else if (GR_IS_GR_WEBGL(standard)) {
442 if (GR_IS_GR_GL(standard) || GR_IS_GR_GL_ES(standard)) {
458 if (GR_IS_GR_GL(standard)) {
464 } else if (GR_IS_GR_GL_ES(standard)) {
484 if (GR_IS_GR_GL(standard)) {
493 } else if (GR_IS_GR_GL_ES(standard)) {
506 } else if (GR_IS_GR_WEBGL(standard)) {
511 if (GR_IS_GR_GL(standard)) {
518 } else if (GR_IS_GR_GL_ES(standard)) {
536 } else if (GR_IS_GR_WEBGL(standard)) {
554 if (GR_IS_GR_GL(standard)) {
557 } else if (GR_IS_GR_GL_ES(standard)) {
567 } else if (GR_IS_GR_WEBGL(standard)) {
621 if (GR_IS_GR_WEBGL(standard)) {
625 if (GR_IS_GR_GL(standard)) {
633 } else if (GR_IS_GR_GL_ES(standard)) {
636 } else if (GR_IS_GR_WEBGL(standard)) {
643 if (GR_IS_GR_GL(standard)) {
654 } else if (GR_IS_GR_GL_ES(standard)) {
670 } else if (GR_IS_GR_WEBGL(standard)) {
693 if (GR_IS_GR_WEBGL(standard)) {
697 } else if (GR_IS_GR_GL(standard) &&
701 } else if (GR_IS_GR_GL_ES(standard) &&
707 // standard GLsync object implementation which also supports GPU semaphore semantics.
717 if (GR_IS_GR_GL(standard)) {
719 } else if (GR_IS_GR_GL_ES(standard)) {
721 } else if (GR_IS_GR_WEBGL(standard)) {
728 if (GR_IS_GR_GL(standard)) {
731 } else if (GR_IS_GR_GL_ES(standard)) {
742 if (GR_IS_GR_GL(standard)) {
745 } else if (GR_IS_GR_GL_ES(standard)) {
747 } else if (GR_IS_GR_WEBGL(standard)) {
753 if (GR_IS_GR_GL_ES(standard)) {
786 const char* get_glsl_version_decl_string(GrGLStandard standard, GrGLSLGeneration generation,
788 if (GR_IS_GR_GL(standard)) {
823 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
843 if (GR_IS_GR_GL(ctxInfo.standard()) &&
863 GrGLStandard standard = ctxInfo.standard();
872 if (GR_IS_GR_GL_ES(standard)) {
897 } else if (GR_IS_GR_GL(standard)) {
905 } else if (GR_IS_GR_WEBGL(standard)) {
909 if (GR_IS_GR_GL(standard)) {
911 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
922 if (GR_IS_GR_GL(standard)) {
925 } else if (GR_IS_GR_GL_ES(standard)) {
934 if (GR_IS_GR_GL(standard)) {
936 } else if (GR_IS_GR_GL_ES(standard)) {
946 if (GR_IS_GR_GL(standard)) {
962 shaderCaps->fVersionDeclString = get_glsl_version_decl_string(standard,
966 if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
972 if (GR_IS_GR_GL_ES(standard)) {
988 if (GR_IS_GR_GL(standard)) {
995 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
1000 if (GR_IS_GR_GL(standard)) {
1007 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
1013 if (GR_IS_GR_GL(standard)) {
1015 } else if (GR_IS_GR_GL_ES(standard) || GR_IS_GR_WEBGL(standard)) {
1023 if (GR_IS_GR_GL(standard)) {
1025 } else if (GR_IS_GR_GL_ES(standard)) {
1031 if (GR_IS_GR_WEBGL(standard)) {
1039 if (GR_IS_GR_GL(ctxInfo.standard())) {
1047 } else if (GR_IS_GR_GL_ES(ctxInfo.standard())) {
1065 } else if (GR_IS_GR_WEBGL(ctxInfo.standard())) {
1111 if (GR_IS_GR_GL(ctxInfo.standard())) {
1125 } else if (GR_IS_GR_GL_ES(ctxInfo.standard())) {
1134 } else if (GR_IS_GR_WEBGL(ctxInfo.standard())) {
1345 GrGLStandard standard = ctxInfo.standard();
1346 // standard can be unused (optimized away) if SK_ASSUME_GL_ES is set
1347 sk_ignore_unused_variable(standard);
1357 if (GR_IS_GR_GL(standard)) {
1362 } else if (GR_IS_GR_GL_ES(standard)) {
1365 } else if (GR_IS_GR_WEBGL(standard)) {
1382 (GR_IS_GR_GL(standard) || (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0)));
1385 uint32_t fpRenderFlags = (GR_IS_GR_GL(standard)) ? msaaRenderFlags : nonMSAARenderFlags;
1394 if ((GR_IS_GR_GL_ES(standard) && version < GR_GL_VER(3, 0)) ||
1395 (GR_IS_GR_WEBGL(standard) && version < GR_GL_VER(2, 0))) {
1408 if (GR_IS_GR_GL(standard)) {
1410 } else if (GR_IS_GR_GL_ES(standard)) {
1415 } else if (GR_IS_GR_WEBGL(standard)) {
1427 bool supportsBGRAColorType = GR_IS_GR_GL(standard) &&
1461 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
1486 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
1531 if (GR_IS_GR_GL(standard)) {
1533 } else if (GR_IS_GR_GL_ES(standard)) {
1535 } else if (GR_IS_GR_WEBGL(standard)) {
1582 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
1616 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
1633 bool alpha8IsValidForGL = GR_IS_GR_GL(standard) &&
1635 bool alpha8IsValidForGLES = GR_IS_GR_GL_ES(standard);
1636 bool alpha8IsValidForWebGL = GR_IS_GR_WEBGL(standard);
1673 if (!GR_IS_GR_GL_ES(standard) && texImageSupportsSizedInternalFormat &&
1710 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
1736 if (GR_IS_GR_GL(standard) && !fIsCoreProfile) {
1739 } else if (GR_IS_GR_GL_ES(standard)) {
1743 } else if (GR_IS_GR_WEBGL(standard)) {
1816 if (GR_IS_GR_GL(standard) && !fIsCoreProfile) {
1819 } else if (GR_IS_GR_GL_ES(standard)) {
1823 } else if (GR_IS_GR_WEBGL(standard)) {
1929 if (GR_IS_GR_GL_ES(standard)) {
1993 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2016 if (GR_IS_GR_GL(standard)) {
2022 } else if (GR_IS_GR_GL_ES(standard)) {
2026 } else if (GR_IS_GR_WEBGL(standard)) {
2038 if (texStorageSupported && GR_IS_GR_GL_ES(standard)) {
2070 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2096 if (GR_IS_GR_GL(standard)) {
2103 } else if (GR_IS_GR_GL_ES(standard)) {
2115 } else if (GR_IS_GR_WEBGL(standard)) {
2175 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2208 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2234 if (GR_IS_GR_GL(standard)) {
2239 } else if (GR_IS_GR_GL_ES(standard)) {
2251 } else if (GR_IS_GR_WEBGL(standard)) {
2299 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2320 if (GR_IS_GR_GL(standard)) {
2325 } else if (GR_IS_GR_GL_ES(standard)) {
2408 if (GR_IS_GR_GL(standard)) {
2415 } else if (GR_IS_GR_GL_ES(standard)) {
2420 } else if (GR_IS_GR_WEBGL(standard)) {
2476 if (GR_IS_GR_GL(standard)) {
2478 } else if (GR_IS_GR_GL_ES(standard)) {
2480 } else if (GR_IS_GR_WEBGL(standard)) {
2519 if (GR_IS_GR_GL(standard) && !formatWorkarounds.fDisallowDirectRG8ReadPixels) {
2544 if (GR_IS_GR_GL(standard) ||
2545 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3, 0))) {
2549 } else if (GR_IS_GR_GL_ES(standard) &&
2563 bool supportsBGRAColorType = GR_IS_GR_GL(standard) &&
2589 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2623 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2647 if (GR_IS_GR_GL(standard)) {
2651 } else if (GR_IS_GR_GL_ES(standard)) {
2653 } else if (GR_IS_GR_WEBGL(standard)) {
2687 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
2714 if (GR_IS_GR_GL(standard)) {
2725 } else if (GR_IS_GR_GL_ES(standard)) {
2736 } else if (GR_IS_GR_WEBGL(standard)) {
2797 if (GR_IS_GR_GL_ES(standard) && version == GR_GL_VER(2,0)) {
2815 if (GR_IS_GR_GL(standard) || GR_IS_GR_GL_ES(standard)) {
2829 if (GR_IS_GR_GL(standard) || GR_IS_GR_GL_ES(standard)) {
2844 if (GR_IS_GR_GL(standard)) {
2849 } else if (GR_IS_GR_GL_ES(standard)) {
2865 if (GR_IS_GR_GL_ES(standard)) {
2880 if (GR_IS_GR_GL_ES(standard)) {
2895 if (GR_IS_GR_GL_ES(standard)) {
2910 if (GR_IS_GR_GL_ES(standard)) {
2929 if (GR_IS_GR_GL(standard)) {
2932 } else if (GR_IS_GR_GL_ES(standard)) {
2978 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
3005 if (GR_IS_GR_GL(standard)) {
3008 } else if (GR_IS_GR_GL_ES(standard)) {
3052 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
3071 if (GR_IS_GR_GL(standard)) {
3073 } else if (GR_IS_GR_GL_ES(standard)) {
3124 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
3143 if (GR_IS_GR_GL(standard)) {
3148 } else if (GR_IS_GR_GL_ES(standard)) {
3160 } else if (GR_IS_GR_WEBGL(standard)) {
3215 ioFormat.fRequiresImplementationReadQuery = !GR_IS_GR_GL(standard);
3262 GrGLStandard standard = ctxInfo.standard();
3263 // standard can be unused (optimized away) if SK_ASSUME_GL_ES is set
3264 sk_ignore_unused_variable(standard);
3271 if ((GR_IS_GR_GL(standard) &&
3274 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0))) {
3304 // Fake out the table using some semi-standard counts up to the max allowed sample
3608 if (GR_IS_GR_GL(ctxInfo.standard()) && ctxInfo.driver() == GrGLDriver::kNVIDIA &&
3628 if (GR_IS_GR_WEBGL(ctxInfo.standard())) {
4125 if (GR_IS_GR_GL(ctxInfo.standard())) {
4195 ctxInfo.driver() == GrGLDriver::kIntel && GR_IS_GR_GL_ES(ctxInfo.standard());