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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextState.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/GraphicsContextState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
index 9a2d86477bfb94a5299374ee58bc6fbdd392c123..747ccdc04e771a649e8159084909ff740242272a 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp
@@ -23,10 +23,10 @@ GraphicsContextState::GraphicsContextState()
m_interpolationQuality(InterpolationDefault),
m_saveCount(0),
m_shouldAntialias(true) {
- m_strokePaint.setStyle(SkPaint::kStroke_Style);
+ m_strokePaint.setStyle(CdlPaint::kStroke_Style);
m_strokePaint.setStrokeWidth(SkFloatToScalar(m_strokeData.thickness()));
- m_strokePaint.setStrokeCap(SkPaint::kDefault_Cap);
- m_strokePaint.setStrokeJoin(SkPaint::kDefault_Join);
+ m_strokePaint.setStrokeCap(CdlPaint::kDefault_Cap);
+ m_strokePaint.setStrokeJoin(CdlPaint::kDefault_Join);
m_strokePaint.setStrokeMiter(SkFloatToScalar(m_strokeData.miterLimit()));
m_strokePaint.setFilterQuality(filterQualityForPaint(m_interpolationQuality));
m_strokePaint.setAntiAlias(m_shouldAntialias);
@@ -48,7 +48,7 @@ void GraphicsContextState::copy(const GraphicsContextState& source) {
new (this) GraphicsContextState(source);
}
-const SkPaint& GraphicsContextState::strokePaint(int strokedPathLength) const {
+const CdlPaint& GraphicsContextState::strokePaint(int strokedPathLength) const {
m_strokeData.setupPaintDashPathEffect(&m_strokePaint, strokedPathLength);
return m_strokePaint;
}
@@ -69,12 +69,12 @@ void GraphicsContextState::setStrokeColor(const Color& color) {
void GraphicsContextState::setLineCap(LineCap cap) {
m_strokeData.setLineCap(cap);
- m_strokePaint.setStrokeCap((SkPaint::Cap)cap);
+ m_strokePaint.setStrokeCap((CdlPaint::Cap)cap);
}
void GraphicsContextState::setLineJoin(LineJoin join) {
m_strokeData.setLineJoin(join);
- m_strokePaint.setStrokeJoin((SkPaint::Join)join);
+ m_strokePaint.setStrokeJoin((CdlPaint::Join)join);
}
void GraphicsContextState::setMiterLimit(float miterLimit) {

Powered by Google App Engine
This is Rietveld 408576698