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

Side by Side Diff: src/gpu/glsl/GrGLSLPrimitiveProcessor.h

Issue 2336723002: Remove base class for installed transforms in GrPrimitiveProcessor (Closed)
Patch Set: rm unused type field for glsl geo proc Created 4 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 | « src/gpu/glsl/GrGLSLGeometryProcessor.h ('k') | no next file » | 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 GrGLSLPrimitiveProcessor_DEFINED 8 #ifndef GrGLSLPrimitiveProcessor_DEFINED
9 #define GrGLSLPrimitiveProcessor_DEFINED 9 #define GrGLSLPrimitiveProcessor_DEFINED
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void setTransformData(const GrPrimitiveProcessor&, 93 virtual void setTransformData(const GrPrimitiveProcessor&,
94 const GrGLSLProgramDataManager& pdman, 94 const GrGLSLProgramDataManager& pdman,
95 int index, 95 int index,
96 const SkTArray<const GrCoordTransform*, true>& transforms) = 0; 96 const SkTArray<const GrCoordTransform*, true>& transforms) = 0;
97 97
98 protected: 98 protected:
99 void setupUniformColor(GrGLSLPPFragmentBuilder* fragBuilder, 99 void setupUniformColor(GrGLSLPPFragmentBuilder* fragBuilder,
100 GrGLSLUniformHandler* uniformHandler, 100 GrGLSLUniformHandler* uniformHandler,
101 const char* outputName, 101 const char* outputName,
102 UniformHandle* colorUniform); 102 UniformHandle* colorUniform);
103
104 struct Transform {
105 Transform() : fType(kVoid_GrSLType) { fCurrentValue = SkMatrix::InvalidM atrix(); }
106 SkMatrix fCurrentValue;
107 GrSLType fType;
108 };
109 }; 103 };
110 104
111 #endif 105 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLGeometryProcessor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698