| Index: third_party/WebKit/Source/platform/graphics/StrokeData.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/StrokeData.cpp b/third_party/WebKit/Source/platform/graphics/StrokeData.cpp
|
| index 735eae1a038478d63d7d3e9d11e3db87f5e688a3..e9176a52e48b912d1940fbb8510c1c72dc5e11ea 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/StrokeData.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/StrokeData.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "platform/graphics/StrokeData.h"
|
| #include "third_party/skia/include/effects/SkDashPathEffect.h"
|
| #include "wtf/PtrUtil.h"
|
| +#include "skia/ext/cdl_paint.h"
|
| #include <memory>
|
|
|
| namespace blink {
|
| @@ -56,8 +57,8 @@ void StrokeData::setLineDash(const DashArray& dashes, float dashOffset) {
|
| m_dash = SkDashPathEffect::Make(intervals.get(), count, dashOffset);
|
| }
|
|
|
| -void StrokeData::setupPaint(SkPaint* paint, int length) const {
|
| - paint->setStyle(SkPaint::kStroke_Style);
|
| +void StrokeData::setupPaint(CdlPaint* paint, int length) const {
|
| + paint->setStyle(CdlPaint::kStroke_Style);
|
| paint->setStrokeWidth(SkFloatToScalar(m_thickness));
|
| paint->setStrokeCap(m_lineCap);
|
| paint->setStrokeJoin(m_lineJoin);
|
| @@ -66,7 +67,7 @@ void StrokeData::setupPaint(SkPaint* paint, int length) const {
|
| setupPaintDashPathEffect(paint, length);
|
| }
|
|
|
| -void StrokeData::setupPaintDashPathEffect(SkPaint* paint, int length) const {
|
| +void StrokeData::setupPaintDashPathEffect(CdlPaint* paint, int length) const {
|
| float width = m_thickness;
|
| if (m_dash) {
|
| paint->setPathEffect(m_dash);
|
|
|