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

Unified Diff: src/gpu/GrContext.cpp

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/GrContext.cpp
===================================================================
--- src/gpu/GrContext.cpp (revision 11177)
+++ src/gpu/GrContext.cpp (working copy)
@@ -745,7 +745,8 @@
void GrContext::drawRect(const GrPaint& paint,
const SkRect& rect,
SkScalar width,
- const SkMatrix* matrix) {
+ const SkMatrix* matrix,
+ bool miterStroke) {
SK_TRACE_EVENT0("GrContext::drawRect");
AutoRestoreEffects are;
@@ -803,9 +804,9 @@
return;
}
if (width >= 0) {
- fAARectRenderer->strokeAARect(this->getGpu(), target,
- rect, combinedMatrix, devBoundRect,
- width, useVertexCoverage);
+ fAARectRenderer->strokeAARect(this->getGpu(), target, rect,
+ combinedMatrix, devBoundRect, width,
+ useVertexCoverage, miterStroke);
} else {
// filled AA rect
fAARectRenderer->fillAARect(this->getGpu(), target,

Powered by Google App Engine
This is Rietveld 408576698