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

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

Issue 184443003: Add Gpu Tracing to Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Partial version Created 6 years, 9 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
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); 306 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
307 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 307 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
308 // Our render targets are always created with textures as the color 308 // Our render targets are always created with textures as the color
309 // attachment, hence this min: 309 // attachment, hence this min:
310 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize); 310 fMaxRenderTargetSize = GrMin(fMaxTextureSize, fMaxRenderTargetSize);
311 311
312 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering"); 312 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering");
313 SkASSERT(!fPathRenderingSupport || fFixedFunctionSupport); 313 SkASSERT(!fPathRenderingSupport || fFixedFunctionSupport);
314 314
315 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 315 fGpuTracingSupport = true;//ctxInfo.hasExtension("GL_EXT_debug_marker");
bsalomon 2014/03/17 17:50:38 :)
egdaniel 2014/03/17 19:49:12 another part of my debugging... On 2014/03/17 17:5
316 316
317 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 317 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
318 318
319 // Disable scratch texture reuse on Mali and Adreno devices 319 // Disable scratch texture reuse on Mali and Adreno devices
320 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 320 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
321 kQualcomm_GrGLVendor != ctxInfo.vendor(); 321 kQualcomm_GrGLVendor != ctxInfo.vendor();
322 322
323 // Enable supported shader-related caps 323 // Enable supported shader-related caps
324 if (kGL_GrGLStandard == standard) { 324 if (kGL_GrGLStandard == standard) {
325 fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3,3) || 325 fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3,3) ||
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 656 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
657 r.appendf("Fragment coord conventions support: %s\n", 657 r.appendf("Fragment coord conventions support: %s\n",
658 (fFragCoordsConventionSupport ? "YES": "NO")); 658 (fFragCoordsConventionSupport ? "YES": "NO"));
659 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 659 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
660 r.appendf("Use non-VBO for dynamic data: %s\n", 660 r.appendf("Use non-VBO for dynamic data: %s\n",
661 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 661 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
662 r.appendf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : "NO")); 662 r.appendf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : "NO"));
663 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 663 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
664 return r; 664 return r;
665 } 665 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698