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

Side by Side Diff: src/gpu/gl/GrGLProgramDataManager.h

Issue 1136803002: print on unused uniforms in debug builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 7 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 | src/gpu/gl/GrGLProgramDataManager.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 #ifndef GrGLProgramDataManager_DEFINED 8 #ifndef GrGLProgramDataManager_DEFINED
9 #define GrGLProgramDataManager_DEFINED 9 #define GrGLProgramDataManager_DEFINED
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 struct Uniform { 100 struct Uniform {
101 GrGLint fVSLocation; 101 GrGLint fVSLocation;
102 GrGLint fFSLocation; 102 GrGLint fFSLocation;
103 SkDEBUGCODE( 103 SkDEBUGCODE(
104 GrSLType fType; 104 GrSLType fType;
105 int fArrayCount; 105 int fArrayCount;
106 ); 106 );
107 }; 107 };
108 108
109 #ifdef SK_DEBUG
110 void printUnused(const Uniform&) const;
111 #else
112 void printUnused(const Uniform&) const {}
113 #endif
114
109 SkTArray<Uniform, true> fUniforms; 115 SkTArray<Uniform, true> fUniforms;
110 GrGLGpu* fGpu; 116 GrGLGpu* fGpu;
111 117
112 typedef SkRefCnt INHERITED; 118 typedef SkRefCnt INHERITED;
113 }; 119 };
114 #endif 120 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698