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

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

Issue 2348293004: Disable framebuffer fetch on the Adreno5xx devices. (Closed)
Patch Set: Created 4 years, 3 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 int adrenoNumber; 297 int adrenoNumber;
298 n = sscanf(rendererString, "Adreno (TM) %d", &adrenoNumber); 298 n = sscanf(rendererString, "Adreno (TM) %d", &adrenoNumber);
299 if (1 == n) { 299 if (1 == n) {
300 if (adrenoNumber >= 300) { 300 if (adrenoNumber >= 300) {
301 if (adrenoNumber < 400) { 301 if (adrenoNumber < 400) {
302 return kAdreno3xx_GrGLRenderer; 302 return kAdreno3xx_GrGLRenderer;
303 } 303 }
304 if (adrenoNumber < 500) { 304 if (adrenoNumber < 500) {
305 return kAdreno4xx_GrGLRenderer; 305 return kAdreno4xx_GrGLRenderer;
306 } 306 }
307 if (adrenoNumber < 600) {
308 return kAdreno5xx_GrGLRenderer;
309 }
307 } 310 }
308 } 311 }
309 if (strcmp("Mesa Offscreen", rendererString)) { 312 if (strcmp("Mesa Offscreen", rendererString)) {
310 return kOSMesa_GrGLRenderer; 313 return kOSMesa_GrGLRenderer;
311 } 314 }
312 } 315 }
313 return kOther_GrGLRenderer; 316 return kOther_GrGLRenderer;
314 } 317 }
315 318
316 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) { 319 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater); 356 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater);
354 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual); 357 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual);
355 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess); 358 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess);
356 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual); 359 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual);
357 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual); 360 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual);
358 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual); 361 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual);
359 SkASSERT(test < (GrStencilTest)kGrStencilTestCount); 362 SkASSERT(test < (GrStencilTest)kGrStencilTestCount);
360 363
361 return gTable[(int)test]; 364 return gTable[(int)test];
362 } 365 }
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