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

Side by Side Diff: src/gpu/gl/GrGLUtil.cpp

Issue 2042313002: Switch to a whitelist for manual mip-map generation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add ATI to whitelist Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLUtil.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "GrGLUtil.h" 9 #include "GrGLUtil.h"
10 #include "SkMatrix.h" 10 #include "SkMatrix.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 if (0 == strncmp(vendorString, "Intel ", 6) || 0 == strcmp(vendorString, "Intel")) { 246 if (0 == strncmp(vendorString, "Intel ", 6) || 0 == strcmp(vendorString, "Intel")) {
247 return kIntel_GrGLVendor; 247 return kIntel_GrGLVendor;
248 } 248 }
249 if (0 == strcmp(vendorString, "Qualcomm")) { 249 if (0 == strcmp(vendorString, "Qualcomm")) {
250 return kQualcomm_GrGLVendor; 250 return kQualcomm_GrGLVendor;
251 } 251 }
252 if (0 == strcmp(vendorString, "NVIDIA Corporation")) { 252 if (0 == strcmp(vendorString, "NVIDIA Corporation")) {
253 return kNVIDIA_GrGLVendor; 253 return kNVIDIA_GrGLVendor;
254 } 254 }
255 if (0 == strcmp(vendorString, "ATI Technologies Inc.")) {
256 return kATI_GrGLVendor;
257 }
255 } 258 }
256 return kOther_GrGLVendor; 259 return kOther_GrGLVendor;
257 } 260 }
258 261
259 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { 262 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) {
260 if (rendererString) { 263 if (rendererString) {
261 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) { 264 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) {
262 return kTegra3_GrGLRenderer; 265 return kTegra3_GrGLRenderer;
263 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) { 266 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) {
264 return kTegra2_GrGLRenderer; 267 return kTegra2_GrGLRenderer;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater); 353 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater);
351 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual); 354 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual);
352 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess); 355 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess);
353 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual); 356 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual);
354 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual); 357 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual);
355 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual); 358 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual);
356 SkASSERT(test < (GrStencilTest)kGrStencilTestCount); 359 SkASSERT(test < (GrStencilTest)kGrStencilTestCount);
357 360
358 return gTable[(int)test]; 361 return gTable[(int)test];
359 } 362 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698