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

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

Issue 344233006: Remove special case gpu transforms for Identity and Translate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unused function Created 6 years, 5 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/GrGLProgramEffects.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 2013 Google Inc. 2 * Copyright 2013 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 GrGLProgramEffects_DEFINED 8 #ifndef GrGLProgramEffects_DEFINED
9 #define GrGLProgramEffects_DEFINED 9 #define GrGLProgramEffects_DEFINED
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 TransformedCoordsArray*); 193 TransformedCoordsArray*);
194 194
195 /** 195 /**
196 * Helper for setData(). Sets all the transform matrices for an effect. 196 * Helper for setData(). Sets all the transform matrices for an effect.
197 */ 197 */
198 void setTransformData(const GrGLUniformManager&, const GrDrawEffect&, int ef fectIdx); 198 void setTransformData(const GrGLUniformManager&, const GrDrawEffect&, int ef fectIdx);
199 199
200 struct Transform { 200 struct Transform {
201 Transform() { fCurrentValue = SkMatrix::InvalidMatrix(); } 201 Transform() { fCurrentValue = SkMatrix::InvalidMatrix(); }
202 UniformHandle fHandle; 202 UniformHandle fHandle;
203 GrSLType fType;
204 SkMatrix fCurrentValue; 203 SkMatrix fCurrentValue;
205 }; 204 };
206 205
207 SkTArray<SkSTArray<2, Transform, true> > fTransforms; 206 SkTArray<SkSTArray<2, Transform, true> > fTransforms;
208 bool fHasExplicitLocalCoords; 207 bool fHasExplicitLocalCoords;
209 208
210 typedef GrGLProgramEffects INHERITED; 209 typedef GrGLProgramEffects INHERITED;
211 }; 210 };
212 211
213 /** 212 /**
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 GrGLProgramEffects* finish() { return fProgramEffects.detach(); } 318 GrGLProgramEffects* finish() { return fProgramEffects.detach(); }
320 319
321 private: 320 private:
322 GrGLFragmentOnlyShaderBuilder* fBuilder; 321 GrGLFragmentOnlyShaderBuilder* fBuilder;
323 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects; 322 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects;
324 323
325 typedef GrGLProgramEffectsBuilder INHERITED; 324 typedef GrGLProgramEffectsBuilder INHERITED;
326 }; 325 };
327 326
328 #endif 327 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgramEffects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698