Lines Matching refs:rendererString
98 const char* rendererString, in GrGLGetDriverInfo() argument
108 if (!rendererString) { in GrGLGetDriverInfo()
109 rendererString = ""; in GrGLGetDriverInfo()
117 if (0 == strcmp(rendererString, kChromium) || in GrGLGetDriverInfo()
166 if (0 == strncmp("ANGLE", rendererString, 5)) { in GrGLGetDriverInfo()
307 static bool is_renderer_angle(const char* rendererString) { in is_renderer_angle() argument
310 return rendererString && 0 == strncmp(rendererString, kHeader, kHeaderLength); in is_renderer_angle()
313 GrGLRenderer GrGLGetRendererFromStrings(const char* rendererString, in GrGLGetRendererFromStrings() argument
315 if (rendererString) { in GrGLGetRendererFromStrings()
317 if (0 == strncmp(rendererString, kTegraStr, SK_ARRAY_COUNT(kTegraStr) - 1)) { in GrGLGetRendererFromStrings()
324 int n = sscanf(rendererString, "PowerVR SGX 54%d", &lastDigit); in GrGLGetRendererFromStrings()
332 if (0 == strncmp(rendererString, kAppleA4Str, in GrGLGetRendererFromStrings()
334 0 == strncmp(rendererString, kAppleA5Str, in GrGLGetRendererFromStrings()
336 0 == strncmp(rendererString, kAppleA6Str, in GrGLGetRendererFromStrings()
343 if (0 == strncmp(rendererString, kPowerVRRogueStr, in GrGLGetRendererFromStrings()
345 0 == strncmp(rendererString, kAppleA7Str, in GrGLGetRendererFromStrings()
347 0 == strncmp(rendererString, kAppleA8Str, in GrGLGetRendererFromStrings()
352 n = sscanf(rendererString, "Adreno (TM) %d", &adrenoNumber); in GrGLGetRendererFromStrings()
367 if (0 == strcmp("Google SwiftShader", rendererString)) { in GrGLGetRendererFromStrings()
371 if (const char* intelString = strstr(rendererString, "Intel")) { in GrGLGetRendererFromStrings()
407 if (const char* amdString = strstr(rendererString, "Radeon")) { in GrGLGetRendererFromStrings()
424 if (0 == strcmp("Mesa Offscreen", rendererString)) { in GrGLGetRendererFromStrings()
427 if (strstr(rendererString, "llvmpipe")) { in GrGLGetRendererFromStrings()
431 if (0 == strncmp(rendererString, kMaliTStr, SK_ARRAY_COUNT(kMaliTStr) - 1)) { in GrGLGetRendererFromStrings()
435 if (1 == sscanf(rendererString, "Mali-%d", &mali400Num) && mali400Num >= 400 && in GrGLGetRendererFromStrings()
439 if (is_renderer_angle(rendererString)) { in GrGLGetRendererFromStrings()
446 void GrGLGetANGLEInfoFromString(const char* rendererString, GrGLANGLEBackend* backend, in GrGLGetANGLEInfoFromString() argument
451 if (!is_renderer_angle(rendererString)) { in GrGLGetANGLEInfoFromString()
454 if (strstr(rendererString, "Intel")) { in GrGLGetANGLEInfoFromString()
459 if ((modelStr = strstr(rendererString, "HD Graphics")) && in GrGLGetANGLEInfoFromString()
478 } else if ((modelStr = strstr(rendererString, "Iris")) && in GrGLGetANGLEInfoFromString()
492 if (strstr(rendererString, "Direct3D11")) { in GrGLGetANGLEInfoFromString()
494 } else if (strstr(rendererString, "Direct3D9")) { in GrGLGetANGLEInfoFromString()
496 } else if (strstr(rendererString, "OpenGL")) { in GrGLGetANGLEInfoFromString()
520 const GrGLubyte* rendererString; in GrGLGetRenderer() local
521 GR_GL_CALL_RET(gl, rendererString, GetString(GR_GL_RENDERER)); in GrGLGetRenderer()
523 return GrGLGetRendererFromStrings((const char*)rendererString, gl->fExtensions); in GrGLGetRenderer()