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

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

Issue 783763002: Initial CL to move color / coverage off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@no-static-gp
Patch Set: bug fix Created 6 years 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/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrAAHairLinePathRenderer_DEFINED 9 #ifndef GrAAHairLinePathRenderer_DEFINED
10 #define GrAAHairLinePathRenderer_DEFINED 10 #define GrAAHairLinePathRenderer_DEFINED
(...skipping 12 matching lines...) Expand all
23 const SkStrokeRec&, 23 const SkStrokeRec&,
24 bool antiAlias) const SK_OVERRIDE; 24 bool antiAlias) const SK_OVERRIDE;
25 25
26 typedef SkTArray<SkPoint, true> PtArray; 26 typedef SkTArray<SkPoint, true> PtArray;
27 typedef SkTArray<int, true> IntArray; 27 typedef SkTArray<int, true> IntArray;
28 typedef SkTArray<float, true> FloatArray; 28 typedef SkTArray<float, true> FloatArray;
29 29
30 protected: 30 protected:
31 virtual bool onDrawPath(GrDrawTarget*, 31 virtual bool onDrawPath(GrDrawTarget*,
32 GrDrawState*, 32 GrDrawState*,
33 GrColor,
33 const SkPath&, 34 const SkPath&,
34 const SkStrokeRec&, 35 const SkStrokeRec&,
35 bool antiAlias) SK_OVERRIDE; 36 bool antiAlias) SK_OVERRIDE;
36 37
37 private: 38 private:
38 GrAAHairLinePathRenderer(const GrContext* context, 39 GrAAHairLinePathRenderer(const GrContext* context,
39 const GrIndexBuffer* fLinesIndexBuffer, 40 const GrIndexBuffer* fLinesIndexBuffer,
40 const GrIndexBuffer* fQuadsIndexBuffer); 41 const GrIndexBuffer* fQuadsIndexBuffer);
41 42
42 bool createLineGeom(GrDrawTarget* target, 43 bool createLineGeom(GrDrawTarget* target,
43 GrDrawState*, 44 GrDrawState*,
45 uint8_t coverage,
44 GrDrawTarget::AutoReleaseGeometry* arg, 46 GrDrawTarget::AutoReleaseGeometry* arg,
45 SkRect* devBounds, 47 SkRect* devBounds,
46 const SkPath& path, 48 const SkPath& path,
47 const PtArray& lines, 49 const PtArray& lines,
48 int lineCnt); 50 int lineCnt);
49 51
50 bool createBezierGeom(GrDrawTarget* target, 52 bool createBezierGeom(GrDrawTarget* target,
51 GrDrawState*, 53 GrDrawState*,
52 GrDrawTarget::AutoReleaseGeometry* arg, 54 GrDrawTarget::AutoReleaseGeometry* arg,
53 SkRect* devBounds, 55 SkRect* devBounds,
54 const SkPath& path, 56 const SkPath& path,
55 const PtArray& quads, 57 const PtArray& quads,
56 int quadCnt, 58 int quadCnt,
57 const PtArray& conics, 59 const PtArray& conics,
58 int conicCnt, 60 int conicCnt,
59 const IntArray& qSubdivs, 61 const IntArray& qSubdivs,
60 const FloatArray& cWeights, 62 const FloatArray& cWeights,
61 size_t vertexStride); 63 size_t vertexStride);
62 64
63 const GrIndexBuffer* fLinesIndexBuffer; 65 const GrIndexBuffer* fLinesIndexBuffer;
64 const GrIndexBuffer* fQuadsIndexBuffer; 66 const GrIndexBuffer* fQuadsIndexBuffer;
65 67
66 typedef GrPathRenderer INHERITED; 68 typedef GrPathRenderer INHERITED;
67 }; 69 };
68 70
69 71
70 #endif 72 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698