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

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

Issue 18258005: Add implicit hairline conic rendering to GPU (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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
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* fConicsIndexBuffer);
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,
41 int* conicCnt,
40 GrDrawTarget::AutoReleaseGeometry* arg, 42 GrDrawTarget::AutoReleaseGeometry* arg,
41 SkRect* devBounds ); 43 SkRect* devBounds );
42 44
43 const GrIndexBuffer* fLinesIndexBuffer; 45 const GrIndexBuffer* fLinesIndexBuffer;
44 const GrIndexBuffer* fQuadsIndexBuffer; 46 const GrIndexBuffer* fQuadsIndexBuffer;
47 const GrIndexBuffer* fConicsIndexBuffer;
45 48
46 typedef GrPathRenderer INHERITED; 49 typedef GrPathRenderer INHERITED;
47 }; 50 };
48 51
49 52
50 #endif 53 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698