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

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

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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/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
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrAAHairLinePathRenderer : public GrPathRenderer { 14 class GrAAHairLinePathRenderer : public GrPathRenderer {
15 public: 15 public:
16 virtual ~GrAAHairLinePathRenderer(); 16 virtual ~GrAAHairLinePathRenderer();
17 17
18 static GrPathRenderer* Create(GrContext* context); 18 static GrPathRenderer* Create(GrContext* context);
19 19
20 virtual bool canDrawPath(const GrDrawTarget*, 20 virtual bool canDrawPath(const GrDrawTarget*,
21 const GrDrawState*, 21 const GrPipelineBuilder*,
22 const SkMatrix& viewMatrix, 22 const SkMatrix& viewMatrix,
23 const SkPath&, 23 const SkPath&,
24 const SkStrokeRec&, 24 const SkStrokeRec&,
25 bool antiAlias) const SK_OVERRIDE; 25 bool antiAlias) const SK_OVERRIDE;
26 26
27 typedef SkTArray<SkPoint, true> PtArray; 27 typedef SkTArray<SkPoint, true> PtArray;
28 typedef SkTArray<int, true> IntArray; 28 typedef SkTArray<int, true> IntArray;
29 typedef SkTArray<float, true> FloatArray; 29 typedef SkTArray<float, true> FloatArray;
30 30
31 protected: 31 protected:
32 virtual bool onDrawPath(GrDrawTarget*, 32 virtual bool onDrawPath(GrDrawTarget*,
33 GrDrawState*, 33 GrPipelineBuilder*,
34 GrColor, 34 GrColor,
35 const SkMatrix& viewMatrix, 35 const SkMatrix& viewMatrix,
36 const SkPath&, 36 const SkPath&,
37 const SkStrokeRec&, 37 const SkStrokeRec&,
38 bool antiAlias) SK_OVERRIDE; 38 bool antiAlias) SK_OVERRIDE;
39 39
40 private: 40 private:
41 GrAAHairLinePathRenderer(const GrContext* context, 41 GrAAHairLinePathRenderer(const GrContext* context,
42 const GrIndexBuffer* fLinesIndexBuffer, 42 const GrIndexBuffer* fLinesIndexBuffer,
43 const GrIndexBuffer* fQuadsIndexBuffer); 43 const GrIndexBuffer* fQuadsIndexBuffer);
44 44
45 bool createLineGeom(GrDrawTarget* target, 45 bool createLineGeom(GrDrawTarget* target,
46 GrDrawState*, 46 GrPipelineBuilder*,
47 const SkMatrix& viewMatrix, 47 const SkMatrix& viewMatrix,
48 uint8_t coverage, 48 uint8_t coverage,
49 size_t vertexStride, 49 size_t vertexStride,
50 GrDrawTarget::AutoReleaseGeometry* arg, 50 GrDrawTarget::AutoReleaseGeometry* arg,
51 SkRect* devBounds, 51 SkRect* devBounds,
52 const SkPath& path, 52 const SkPath& path,
53 const PtArray& lines, 53 const PtArray& lines,
54 int lineCnt); 54 int lineCnt);
55 55
56 bool createBezierGeom(GrDrawTarget* target, 56 bool createBezierGeom(GrDrawTarget* target,
57 GrDrawState*, 57 GrPipelineBuilder*,
58 const SkMatrix& viewMatrix, 58 const SkMatrix& viewMatrix,
59 GrDrawTarget::AutoReleaseGeometry* arg, 59 GrDrawTarget::AutoReleaseGeometry* arg,
60 SkRect* devBounds, 60 SkRect* devBounds,
61 const SkPath& path, 61 const SkPath& path,
62 const PtArray& quads, 62 const PtArray& quads,
63 int quadCnt, 63 int quadCnt,
64 const PtArray& conics, 64 const PtArray& conics,
65 int conicCnt, 65 int conicCnt,
66 const IntArray& qSubdivs, 66 const IntArray& qSubdivs,
67 const FloatArray& cWeights, 67 const FloatArray& cWeights,
68 size_t vertexStride); 68 size_t vertexStride);
69 69
70 const GrIndexBuffer* fLinesIndexBuffer; 70 const GrIndexBuffer* fLinesIndexBuffer;
71 const GrIndexBuffer* fQuadsIndexBuffer; 71 const GrIndexBuffer* fQuadsIndexBuffer;
72 72
73 typedef GrPathRenderer INHERITED; 73 typedef GrPathRenderer INHERITED;
74 }; 74 };
75 75
76 76
77 #endif 77 #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