Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: src/gpu/gl/GrGLUtil.cpp

Issue 152233006: Bug Fix for Intel atan on gpu sweep gradient (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")) {
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698