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

Unified Diff: src/gpu/GrAARectRenderer.h

Issue 23712005: Add bevel-stroke support in GrAARectRenderer (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrAARectRenderer.h
===================================================================
--- src/gpu/GrAARectRenderer.h (revision 11177)
+++ src/gpu/GrAARectRenderer.h (working copy)
@@ -64,7 +64,8 @@
const SkMatrix& combinedMatrix,
const SkRect& devRect,
SkScalar width,
- bool useVertexCoverage);
+ bool useVertexCoverage,
+ bool miterStroke);
// First rect is outer; second rect is inner
void fillAANestedRects(GrGpu* gpu,
@@ -79,8 +80,8 @@
GrIndexBuffer* aaFillRectIndexBuffer(GrGpu* gpu);
- static int aaStrokeRectIndexCount();
- GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu);
+ static int aaStrokeRectIndexCount(bool miterStroke);
+ GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke);
// TODO: Remove the useVertexCoverage boolean. Just use it all the time
// since we now have a coverage vertex attribute
@@ -104,8 +105,10 @@
void geometryStrokeAARect(GrGpu* gpu,
GrDrawTarget* target,
const SkRect& devOutside,
+ const SkRect& devOutsideAssist,
const SkRect& devInside,
- bool useVertexCoverage);
+ bool useVertexCoverage,
+ bool miterStroke);
typedef SkRefCnt INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698