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

Side by Side Diff: src/gpu/GrDefaultGeoProcFactory.h

Issue 1261083003: Use new API everywhere for GrDefaultGeoProcFactory (Closed) Base URL: https://skia.googlesource.com/skia.git@lccleanup2
Patch Set: tweaks Created 5 years, 4 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/GrAARectRenderer.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.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 2014 Google Inc. 2 * Copyright 2014 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 GrDefaultGeoProcFactory_DEFINED 8 #ifndef GrDefaultGeoProcFactory_DEFINED
9 #define GrDefaultGeoProcFactory_DEFINED 9 #define GrDefaultGeoProcFactory_DEFINED
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 bool hasLocalMatrix() const { return NULL != fMatrix; } 121 bool hasLocalMatrix() const { return NULL != fMatrix; }
122 122
123 Type fType; 123 Type fType;
124 const SkMatrix* fMatrix; 124 const SkMatrix* fMatrix;
125 }; 125 };
126 126
127 const GrGeometryProcessor* Create(const Color&, 127 const GrGeometryProcessor* Create(const Color&,
128 const Coverage&, 128 const Coverage&,
129 const LocalCoords&, 129 const LocalCoords&,
130 const SkMatrix& viewMatrix = SkMatrix::I() ); 130 const SkMatrix& viewMatrix);
131 131
132 /* 132 /*
133 * Use this factory to create a GrGeometryProcessor that expects a device sp ace vertex position 133 * Use this factory to create a GrGeometryProcessor that expects a device sp ace vertex position
134 * attribute. The view matrix must still be provided to compute correctly tr ansformed 134 * attribute. The view matrix must still be provided to compute correctly tr ansformed
135 * coordinates for GrFragmentProcessors. It may fail if the view matrix is n ot invertible. 135 * coordinates for GrFragmentProcessors. It may fail if the view matrix is n ot invertible.
136 */ 136 */
137 const GrGeometryProcessor* CreateForDeviceSpace(const Color&, 137 const GrGeometryProcessor* CreateForDeviceSpace(const Color&,
138 const Coverage&, 138 const Coverage&,
139 const LocalCoords&, 139 const LocalCoords&,
140 const SkMatrix& viewMatrix); 140 const SkMatrix& viewMatrix);
141 141
142 // TODO deprecate this
143 const GrGeometryProcessor* Create(uint32_t gpTypeFlags,
144 GrColor,
145 bool localCoordsWillBeRead,
146 bool coverageWillBeIgnored,
147 const SkMatrix& viewMatrix = SkMatrix::I() ,
148 const SkMatrix& localMatrix = SkMatrix::I( ),
149 uint8_t coverage = 0xff);
150
151 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); } 142 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); }
152 }; 143 };
153 144
154 #endif 145 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698