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

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

Issue 504203004: Attach GrOptDrawState into shader building pipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@opt2
Patch Set: Remove BlendOpt Cache Created 6 years, 3 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/GrDrawState.h » ('j') | src/gpu/GrOptDrawState.h » ('J')
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 } 132 }
133 133
134 const GrEffect* getEffect() const { return fEffect.get(); } 134 const GrEffect* getEffect() const { return fEffect.get(); }
135 135
136 const int* getVertexAttribIndices() const { return fVertexAttribIndices; } 136 const int* getVertexAttribIndices() const { return fVertexAttribIndices; }
137 int getVertexAttribIndexCount() const { return fEffect->numVertexAttribs(); } 137 int getVertexAttribIndexCount() const { return fEffect->numVertexAttribs(); }
138 138
139 void convertToPendingExec() { fEffect.convertToPendingExec(); } 139 void convertToPendingExec() { fEffect.convertToPendingExec(); }
140 140
141 void remapAttribIndices(const int* map) {
142 for (int i = 0; i < 2; ++i) {
143 if (-1 != fVertexAttribIndices[i]) {
144 fVertexAttribIndices[i] = map[fVertexAttribIndices[i]];
145 }
146 }
147 }
148
141 private: 149 private:
142 bool fCoordChangeMatrixSet; 150 bool fCoordChangeMatrixSet;
143 SkMatrix fCoordChangeMatrix; 151 SkMatrix fCoordChangeMatrix;
144 GrProgramElementRef<const GrEffect> fEffect; 152 GrProgramElementRef<const GrEffect> fEffect;
145 int fVertexAttribIndices[2]; 153 int fVertexAttribIndices[2];
146 }; 154 };
147 155
148 #endif 156 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawState.h » ('j') | src/gpu/GrOptDrawState.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698