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

Unified Diff: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp

Issue 1467253002: Restrict query bounds for reduce clip to dev bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rm commented out code and add comment Created 5 years, 1 month 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/batches/GrAALinearizingConvexPathRenderer.cpp
diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
index e6cf035ce6a86ec6170bbe95109ae8c59d63ba02..163cda693cc3c0c8db85aac5b321b9a5682a8538 100644
--- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
+++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
@@ -264,6 +264,14 @@ private:
// compute bounds
fBounds = geometry.fPath.getBounds();
+ SkScalar w = geometry.fStrokeWidth;
+ if (w > 0) {
+ w /= 2;
+ if (SkPaint::kMiter_Join == geometry.fJoin) {
robertphillips 2015/11/23 17:22:55 Shouldn't this be a max ? Does the miterLimit appl
bsalomon 2015/11/23 17:59:34 hairlines don't get joins applied to them. Do you
+ w *= geometry.fMiterLimit;
+ }
+ fBounds.outset(w, w);
+ }
geometry.fViewMatrix.mapRect(&fBounds);
}

Powered by Google App Engine
This is Rietveld 408576698