Loading libs/hwui/DisplayListOp.h +5 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,11 @@ public: return DeferredDisplayList::kOpBatch_None; } float strokeWidthOutset() { return mPaint->getStrokeWidth() * 0.5f; } float strokeWidthOutset() { float width = mPaint->getStrokeWidth(); if (width == 0) return 0.5f; // account for hairline return width * 0.5f; } protected: SkPaint* getPaint(OpenGLRenderer& renderer) { Loading libs/hwui/PathTessellator.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ void PathTessellator::expandBoundsForStroke(SkRect& bounds, const SkPaint* paint bool forceExpand) { if (forceExpand || paint->getStyle() != SkPaint::kFill_Style) { float outset = paint->getStrokeWidth() * 0.5f; if (outset == 0) outset = 0.5f; // account for hairline bounds.outset(outset, outset); } } Loading Loading
libs/hwui/DisplayListOp.h +5 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,11 @@ public: return DeferredDisplayList::kOpBatch_None; } float strokeWidthOutset() { return mPaint->getStrokeWidth() * 0.5f; } float strokeWidthOutset() { float width = mPaint->getStrokeWidth(); if (width == 0) return 0.5f; // account for hairline return width * 0.5f; } protected: SkPaint* getPaint(OpenGLRenderer& renderer) { Loading
libs/hwui/PathTessellator.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ void PathTessellator::expandBoundsForStroke(SkRect& bounds, const SkPaint* paint bool forceExpand) { if (forceExpand || paint->getStyle() != SkPaint::kFill_Style) { float outset = paint->getStrokeWidth() * 0.5f; if (outset == 0) outset = 0.5f; // account for hairline bounds.outset(outset, outset); } } Loading