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

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

Issue 937303002: Round stencil buffers dims up to next pow2 when allowed (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrGpu.cpp ('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 2012 Google Inc. 2 * Copyright 2012 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 "GrGLCaps.h" 9 #include "GrGLCaps.h"
10 10
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { 400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); 401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount);
402 } 402 }
403 403
404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || 404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || 405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
406 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { 406 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) {
407 fUseDrawInsteadOfClear = true; 407 fUseDrawInsteadOfClear = true;
408 } 408 }
409 409
410 if (kGL_GrGLStandard == standard) {
411 // ARB allows mixed size FBO attachments, EXT does not.
412 if (ctxInfo.version() >= GR_GL_VER(3, 0) ||
413 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) {
414 fOversizedStencilSupport = true;
415 } else {
416 SkASSERT(ctxInfo.hasExtension("GL_EXT_framebuffer_object"));
417 }
418 } else {
419 // ES 3.0 supports mixed size FBO attachments, 2.0 does not.
420 fOversizedStencilSupport = ctxInfo.version() >= GR_GL_VER(3, 0);
421 }
422
410 this->initConfigTexturableTable(ctxInfo, gli); 423 this->initConfigTexturableTable(ctxInfo, gli);
411 this->initConfigRenderableTable(ctxInfo); 424 this->initConfigRenderableTable(ctxInfo);
412 425
413 this->initShaderPrecisionTable(ctxInfo, gli); 426 this->initShaderPrecisionTable(ctxInfo, gli);
414 427
415 return true; 428 return true;
416 } 429 }
417 430
418 void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { 431 void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) {
419 // OpenGL < 3.0 432 // OpenGL < 3.0
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 1055 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
1043 r.appendf("Fragment coord conventions support: %s\n", 1056 r.appendf("Fragment coord conventions support: %s\n",
1044 (fFragCoordsConventionSupport ? "YES": "NO")); 1057 (fFragCoordsConventionSupport ? "YES": "NO"));
1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 1058 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
1046 r.appendf("Use non-VBO for dynamic data: %s\n", 1059 r.appendf("Use non-VBO for dynamic data: %s\n",
1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 1060 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 1061 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 1062 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
1050 return r; 1063 return r;
1051 } 1064 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698