 Chromium Code Reviews
 Chromium Code Reviews Issue 1467253002:
  Restrict query bounds for reduce clip to dev bounds  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@master
    
  
    Issue 1467253002:
  Restrict query bounds for reduce clip to dev bounds  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@master| 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); | 
| } |