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

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

Issue 22686002: Implement path cover with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix a comment Created 7 years, 2 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/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 } 295 }
296 296
297 fHWAALineSupport = (kDesktop_GrGLBinding == binding); 297 fHWAALineSupport = (kDesktop_GrGLBinding == binding);
298 298
299 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); 299 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
300 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 300 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
301 // Our render targets are always created with textures as the color 301 // Our render targets are always created with textures as the color
302 // attachment, hence this min: 302 // attachment, hence this min:
303 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize); 303 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize);
304 304
305 fPathStencilingSupport = GR_GL_USE_NV_PATH_RENDERING && 305 fPathRenderingSupport = GR_GL_USE_NV_PATH_RENDERING &&
306 ctxInfo.hasExtension("GL_NV_path_rendering"); 306 ctxInfo.hasExtension("GL_NV_path_rendering");
307 307
308 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 308 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
309 309
310 #if 0 310 #if 0
311 // This has to be temporarily disabled. On Android it causes the texture 311 // This has to be temporarily disabled. On Android it causes the texture
312 // usage to become front loaded and the OS kills the process. It can 312 // usage to become front loaded and the OS kills the process. It can
313 // be re-enabled once the more dynamic (ref-driven) cache clearing 313 // be re-enabled once the more dynamic (ref-driven) cache clearing
314 // system is in place. 314 // system is in place.
315 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor(); 315 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor();
316 #else 316 #else
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 GrPrintf("GL_R support: %s\n", (fTextureRedSupport ? "YES": "NO")); 563 GrPrintf("GL_R support: %s\n", (fTextureRedSupport ? "YES": "NO"));
564 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); 564 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO"));
565 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 565 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
566 GrPrintf("Fragment coord conventions support: %s\n", 566 GrPrintf("Fragment coord conventions support: %s\n",
567 (fFragCoordsConventionSupport ? "YES": "NO")); 567 (fFragCoordsConventionSupport ? "YES": "NO"));
568 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO")); 568 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO"));
569 GrPrintf("Use non-VBO for dynamic data: %s\n", 569 GrPrintf("Use non-VBO for dynamic data: %s\n",
570 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 570 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
571 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO")); 571 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO"));
572 } 572 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698