Chromium Code Reviews| Index: src/gpu/gl/GrGLUtil.cpp |
| diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
| index 87e2f83a289cf34f6c74cc79ef91a9ade3b6b1c5..b45f6fb490da746164272f7e77d5c75d88b2eeca 100644 |
| --- a/src/gpu/gl/GrGLUtil.cpp |
| +++ b/src/gpu/gl/GrGLUtil.cpp |
| @@ -9,6 +9,7 @@ |
| #include "GrGLUtil.h" |
| #include "SkMatrix.h" |
| #include <stdio.h> |
| +#include <string> |
| void GrGLClearErr(const GrGLInterface* gl) { |
| while (GR_GL_NO_ERROR != gl->fFunctions.fGetError()) {} |
| @@ -213,7 +214,8 @@ GrGLVendor GrGLGetVendorFromString(const char* vendorString) { |
| if (0 == strcmp(vendorString, "Imagination Technologies")) { |
| return kImagination_GrGLVendor; |
| } |
| - if (0 == strcmp(vendorString, "Intel")) { |
| + std::string vendorStringTmp(vendorString); |
| + if (0 == vendorStringTmp.compare(0, 6, "Intel ") || 0 == strcmp(vendorString, "Intel")) { |
|
bsalomon
2014/02/12 22:14:38
strncmp? Not totally opposed to std::string but si
|
| return kIntel_GrGLVendor; |
| } |
| if (0 == strcmp(vendorString, "Qualcomm")) { |