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

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: 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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698