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

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

Issue 1152733009: Screenspace AA tessellated path rendering. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make stride part of the VertexAllocator. 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 | « no previous file | src/gpu/GrPathRendererChain.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 17 matching lines...) Expand all
28 }; 28 };
29 29
30 struct PositionColorAttr { 30 struct PositionColorAttr {
31 SkPoint fPosition; 31 SkPoint fPosition;
32 SkColor fColor; 32 SkColor fColor;
33 }; 33 };
34 34
35 struct PositionColorCoverageAttr { 35 struct PositionColorCoverageAttr {
36 SkPoint fPosition; 36 SkPoint fPosition;
37 SkColor fColor; 37 SkColor fColor;
38 GrColor fCoverage; 38 float fCoverage;
Stephen White 2016/08/30 17:10:51 Note: I believe this is a bug, but went unnoticed
bsalomon 2016/08/31 14:19:19 My read of the code is that the others should all
Stephen White 2016/08/31 15:16:38 Done.
39 }; 39 };
40 40
41 struct PositionLocalCoordAttr { 41 struct PositionLocalCoordAttr {
42 SkPoint fPosition; 42 SkPoint fPosition;
43 SkPoint fLocalCoord; 43 SkPoint fLocalCoord;
44 }; 44 };
45 45
46 struct PositionLocalCoordCoverageAttr { 46 struct PositionLocalCoordCoverageAttr {
47 SkPoint fPosition; 47 SkPoint fPosition;
48 SkPoint fLocalCoord; 48 SkPoint fLocalCoord;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 */ 127 */
128 sk_sp<GrGeometryProcessor> MakeForDeviceSpace(const Color&, 128 sk_sp<GrGeometryProcessor> MakeForDeviceSpace(const Color&,
129 const Coverage&, 129 const Coverage&,
130 const LocalCoords&, 130 const LocalCoords&,
131 const SkMatrix& viewMatrix); 131 const SkMatrix& viewMatrix);
132 132
133 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); } 133 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); }
134 }; 134 };
135 135
136 #endif 136 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrPathRendererChain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698