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

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

Issue 1204773003: Revert of Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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
422 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { 417 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) {
423 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); 418 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount);
424 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { 419 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
425 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); 420 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount);
426 } 421 }
427 422
428 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || 423 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
429 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || 424 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
430 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { 425 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) {
431 fUseDrawInsteadOfClear = true; 426 fUseDrawInsteadOfClear = true;
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 if (fGeometryShaderSupport) { 1190 if (fGeometryShaderSupport) {
1196 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1191 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1197 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1192 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1198 } 1193 }
1199 } 1194 }
1200 } 1195 }
1201 1196
1202 1197
1203 1198
1204 1199
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