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

Side by Side Diff: src/gpu/effects/GrConvexPolyEffect.h

Issue 171413004: Analytic rrect clip for cicular corners, radius >= .5 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix windows warning in rrects.cpp Created 6 years, 10 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 | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/effects/GrConvexPolyEffect.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 GrConvexPolyEffect_DEFINED 8 #ifndef GrConvexPolyEffect_DEFINED
9 #define GrConvexPolyEffect_DEFINED 9 #define GrConvexPolyEffect_DEFINED
10 10
11 #include "GrDrawTargetCaps.h" 11 #include "GrDrawTargetCaps.h"
12 #include "GrEffect.h" 12 #include "GrEffect.h"
13 #include "GrVertexEffect.h"
14 13
15 class GrGLConvexPolyEffect; 14 class GrGLConvexPolyEffect;
16 class SkPath; 15 class SkPath;
17 16
18 /** 17 /**
19 * An effect that renders a convex polygon. It is intended to be used as a cover age effect. 18 * An effect that renders a convex polygon. It is intended to be used as a cover age effect.
20 * Bounding geometry is rendered and the effect computes coverage based on the f ragment's 19 * Bounding geometry is rendered and the effect computes coverage based on the f ragment's
21 * position relative to the polygon. 20 * position relative to the polygon.
22 */ 21 */
23 class GrConvexPolyEffect : public GrEffect { 22 class GrConvexPolyEffect : public GrEffect {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int fEdgeCount; 91 int fEdgeCount;
93 SkScalar fEdges[3 * kMaxEdges]; 92 SkScalar fEdges[3 * kMaxEdges];
94 93
95 GR_DECLARE_EFFECT_TEST; 94 GR_DECLARE_EFFECT_TEST;
96 95
97 typedef GrEffect INHERITED; 96 typedef GrEffect INHERITED;
98 }; 97 };
99 98
100 99
101 #endif 100 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/effects/GrConvexPolyEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698