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

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

Issue 19636002: Plumb in flag for reusing scratch textures (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added missing initialization! Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrDrawTargetCaps.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 #include "GrGLContext.h" 10 #include "GrGLContext.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 282 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
283 // Our render targets are always created with textures as the color 283 // Our render targets are always created with textures as the color
284 // attachment, hence this min: 284 // attachment, hence this min:
285 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize); 285 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize);
286 286
287 fPathStencilingSupport = GR_GL_USE_NV_PATH_RENDERING && 287 fPathStencilingSupport = GR_GL_USE_NV_PATH_RENDERING &&
288 ctxInfo.hasExtension("GL_NV_path_rendering"); 288 ctxInfo.hasExtension("GL_NV_path_rendering");
289 289
290 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 290 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
291 291
292 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor();
293
292 // Enable supported shader-related caps 294 // Enable supported shader-related caps
293 if (kDesktop_GrGLBinding == binding) { 295 if (kDesktop_GrGLBinding == binding) {
294 fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3,3) || 296 fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3,3) ||
295 ctxInfo.hasExtension("GL_ARB_blend_func_ext ended"); 297 ctxInfo.hasExtension("GL_ARB_blend_func_ext ended");
296 fShaderDerivativeSupport = true; 298 fShaderDerivativeSupport = true;
297 // we don't support GL_ARB_geometry_shader4, just GL 3.2+ GS 299 // we don't support GL_ARB_geometry_shader4, just GL 3.2+ GS
298 fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3,2) && 300 fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3,2) &&
299 ctxInfo.glslGeneration() >= k150_GrGLSLGenerati on; 301 ctxInfo.glslGeneration() >= k150_GrGLSLGenerati on;
300 } else { 302 } else {
301 fShaderDerivativeSupport = ctxInfo.hasExtension("GL_OES_standard_derivat ives"); 303 fShaderDerivativeSupport = ctxInfo.hasExtension("GL_OES_standard_derivat ives");
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); 582 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO"));
581 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 583 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
582 GrPrintf("Fragment coord conventions support: %s\n", 584 GrPrintf("Fragment coord conventions support: %s\n",
583 (fFragCoordsConventionSupport ? "YES": "NO")); 585 (fFragCoordsConventionSupport ? "YES": "NO"));
584 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO")); 586 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO"));
585 GrPrintf("Use non-VBO for dynamic data: %s\n", 587 GrPrintf("Use non-VBO for dynamic data: %s\n",
586 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 588 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
587 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO")); 589 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO"));
588 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO")); 590 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO"));
589 } 591 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698