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

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

Issue 245963009: Use EXT_direct_state_access for path matrix manipulation (Closed) Base URL: https://skia.googlesource.com/skia.git@nv-pr-00-no-ff-primitives
Patch Set: Created 6 years, 8 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 | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCreateNullInterface.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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 317
318 fHWAALineSupport = (kGL_GrGLStandard == standard); 318 fHWAALineSupport = (kGL_GrGLStandard == standard);
319 319
320 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); 320 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
321 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 321 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
322 // Our render targets are always created with textures as the color 322 // Our render targets are always created with textures as the color
323 // attachment, hence this min: 323 // attachment, hence this min:
324 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize); 324 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize);
325 325
326 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering"); 326 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering") &&
327 ctxInfo.hasExtension("GL_EXT_direct_state_access");
327 328
328 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 329 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
329 330
330 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 331 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
331 332
332 // Disable scratch texture reuse on Mali and Adreno devices 333 // Disable scratch texture reuse on Mali and Adreno devices
333 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 334 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
334 kQualcomm_GrGLVendor != ctxInfo.vendor(); 335 kQualcomm_GrGLVendor != ctxInfo.vendor();
335 336
336 // Enable supported shader-related caps 337 // Enable supported shader-related caps
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 679 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
679 r.appendf("Fragment coord conventions support: %s\n", 680 r.appendf("Fragment coord conventions support: %s\n",
680 (fFragCoordsConventionSupport ? "YES": "NO")); 681 (fFragCoordsConventionSupport ? "YES": "NO"));
681 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 682 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
682 r.appendf("Use non-VBO for dynamic data: %s\n", 683 r.appendf("Use non-VBO for dynamic data: %s\n",
683 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 684 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
684 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 685 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
685 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 686 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
686 return r; 687 return r;
687 } 688 }
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698