OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |