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

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

Issue 22900007: Add direct bezier cubic support for GPU shaders (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | src/gpu/GrPathUtils.cpp » ('J')
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 13 matching lines...) Expand all
24 24
25 protected: 25 protected:
26 virtual bool onDrawPath(const SkPath& path, 26 virtual bool onDrawPath(const SkPath& path,
27 const SkStrokeRec& stroke, 27 const SkStrokeRec& stroke,
28 GrDrawTarget* target, 28 GrDrawTarget* target,
29 bool antiAlias) SK_OVERRIDE; 29 bool antiAlias) SK_OVERRIDE;
30 30
31 private: 31 private:
32 GrAAHairLinePathRenderer(const GrContext* context, 32 GrAAHairLinePathRenderer(const GrContext* context,
33 const GrIndexBuffer* fLinesIndexBuffer, 33 const GrIndexBuffer* fLinesIndexBuffer,
34 const GrIndexBuffer* fQuadsIndexBuffer); 34 const GrIndexBuffer* fQuadsIndexBuffer,
35 const GrIndexBuffer* fCubicsIndexBuffer);
35 36
36 bool createGeom(const SkPath& path, 37 bool createGeom(const SkPath& path,
37 GrDrawTarget* target, 38 GrDrawTarget* target,
38 int* lineCnt, 39 int* lineCnt,
39 int* quadCnt, 40 int* quadCnt,
40 int* conicCnt, 41 int* conicCnt,
42 int* cubicCnt,
41 GrDrawTarget::AutoReleaseGeometry* arg, 43 GrDrawTarget::AutoReleaseGeometry* arg,
42 SkRect* devBounds ); 44 SkRect* devBounds );
43 45
44 const GrIndexBuffer* fLinesIndexBuffer; 46 const GrIndexBuffer* fLinesIndexBuffer;
45 const GrIndexBuffer* fQuadsIndexBuffer; 47 const GrIndexBuffer* fQuadsIndexBuffer;
48 const GrIndexBuffer* fCubicsIndexBuffer;
46 49
47 typedef GrPathRenderer INHERITED; 50 typedef GrPathRenderer INHERITED;
48 }; 51 };
49 52
50 53
51 #endif 54 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | src/gpu/GrPathUtils.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698