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

Side by Side Diff: include/gpu/GrProcessorStage.h

Issue 735153002: Add processor name to comment when printing out shaders. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/builders/GrGLProgramBuilder.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 int combinedTypes = type0 | type1; 141 int combinedTypes = type0 | type1;
142 if (SkMatrix::kPerspective_Mask & combinedTypes) { 142 if (SkMatrix::kPerspective_Mask & combinedTypes) {
143 return true; 143 return true;
144 } else { 144 } else {
145 return false; 145 return false;
146 } 146 }
147 } 147 }
148 148
149 const char* name() const { return fProc->name(); }
150
149 const GrFragmentProcessor* getProcessor() const { return fProc.get(); } 151 const GrFragmentProcessor* getProcessor() const { return fProc.get(); }
150 152
151 void convertToPendingExec() { fProc.convertToPendingExec(); } 153 void convertToPendingExec() { fProc.convertToPendingExec(); }
152 154
153 protected: 155 protected:
154 bool fCoordChangeMatrixSet; 156 bool fCoordChangeMatrixSet;
155 SkMatrix fCoordChangeMatrix; 157 SkMatrix fCoordChangeMatrix;
156 GrProgramElementRef<const GrFragmentProcessor> fProc; 158 GrProgramElementRef<const GrFragmentProcessor> fProc;
157 }; 159 };
158 160
159 #endif 161 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698