Detect Chrome either by renderer or version strings.
We currently detect Chrome by GL_RENDERER. In anticipation of changes in Chrome to no longer override the renderer string we now also check the version string. Change-Id: Ice4ac3ae8ced5ac3d8fd2099300f0a3285f9c197 Reviewed-on: https://skia-review.googlesource.com/9807 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
22253064ce
commit
be4eed2ef7
@ -111,7 +111,8 @@ void GrGLGetDriverInfo(GrGLStandard standard,
|
||||
versionString = "";
|
||||
}
|
||||
|
||||
if (0 == strcmp(rendererString, "Chromium")) {
|
||||
if (0 == strcmp(rendererString, "Chromium") ||
|
||||
2 == sscanf(versionString, "OpenGL ES %d.%d Chromium", &major, &minor)) {
|
||||
*outDriver = kChromium_GrGLDriver;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user