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

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

Issue 1139753002: Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix merge issue Created 5 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/GrVertexBuffer.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 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) { 407 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) {
408 fMinTextureSize = 16; 408 fMinTextureSize = 16;
409 } 409 }
410 410
411 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 411 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
412 412
413 // Disable scratch texture reuse on Mali and Adreno devices 413 // Disable scratch texture reuse on Mali and Adreno devices
414 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 414 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
415 kQualcomm_GrGLVendor != ctxInfo.vendor(); 415 kQualcomm_GrGLVendor != ctxInfo.vendor();
416 416
417 #if 0
418 fReuseScratchBuffers = kARM_GrGLVendor != ctxInfo.vendor() &&
419 kQualcomm_GrGLVendor != ctxInfo.vendor();
420 #endif
421
417 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { 422 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) {
418 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); 423 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount);
419 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { 424 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
420 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); 425 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount);
421 } 426 }
422 427
423 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || 428 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
424 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || 429 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
425 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { 430 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) {
426 fUseDrawInsteadOfClear = true; 431 fUseDrawInsteadOfClear = true;
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 if (fGeometryShaderSupport) { 1195 if (fGeometryShaderSupport) {
1191 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1196 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1192 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1197 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1193 } 1198 }
1194 } 1199 }
1195 } 1200 }
1196 1201
1197 1202
1198 1203
1199 1204
OLDNEW
« no previous file with comments | « src/gpu/GrVertexBuffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698