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

Unified Diff: third_party/WebKit/Source/platform/graphics/StrokeData.cpp

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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: 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);

Powered by Google App Engine
This is Rietveld 408576698