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

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

Issue 2227983003: Restore scratch texture reuse on Adreno. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); 433 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
434 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 434 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
435 // Our render targets are always created with textures as the color 435 // Our render targets are always created with textures as the color
436 // attachment, hence this min: 436 // attachment, hence this min:
437 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize); 437 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize);
438 438
439 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 439 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
440 440
441 // Disable scratch texture reuse on Mali and Adreno devices 441 // Disable scratch texture reuse on Mali and Adreno devices
442 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 442 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor();
443 kQualcomm_GrGLVendor != ctxInfo.vendor();
444 443
445 #if 0 444 #if 0
446 fReuseScratchBuffers = kARM_GrGLVendor != ctxInfo.vendor() && 445 fReuseScratchBuffers = kARM_GrGLVendor != ctxInfo.vendor() &&
447 kQualcomm_GrGLVendor != ctxInfo.vendor(); 446 kQualcomm_GrGLVendor != ctxInfo.vendor();
448 #endif 447 #endif
449 448
450 // initFSAASupport() must have been called before this point 449 // initFSAASupport() must have been called before this point
451 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { 450 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) {
452 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxStencilSampleCount); 451 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxStencilSampleCount);
453 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { 452 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { 1934 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
1936 if (options.fEnableInstancedRendering) { 1935 if (options.fEnableInstancedRendering) {
1937 fInstancedSupport = gr_instanced::GLInstancedRendering::CheckSupport(*th is); 1936 fInstancedSupport = gr_instanced::GLInstancedRendering::CheckSupport(*th is);
1938 #ifndef SK_BUILD_FOR_MAC 1937 #ifndef SK_BUILD_FOR_MAC
1939 // OS X doesn't seem to write correctly to floating point textures when using 1938 // OS X doesn't seem to write correctly to floating point textures when using
1940 // glDraw*Indirect, regardless of the underlying GPU. 1939 // glDraw*Indirect, regardless of the underlying GPU.
1941 fAvoidInstancedDrawsToFPTargets = true; 1940 fAvoidInstancedDrawsToFPTargets = true;
1942 #endif 1941 #endif
1943 } 1942 }
1944 } 1943 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698