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

Unified Diff: third_party/WebKit/Source/core/paint/SVGShapePainter.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/core/paint/SVGShapePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
index 550622ee5088987bc00a4f726992ddb6b6ff70bf..15ebbe2003075d0fbf6cc91b3f5bb90d64f9565f 100644
--- a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
@@ -20,7 +20,7 @@
#include "platform/graphics/GraphicsContextStateSaver.h"
#include "platform/graphics/paint/SkPictureBuilder.h"
#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkPicture.h"
+#include "skia/ext/cdl_picture.h"
#include "wtf/Optional.h"
namespace blink {
@@ -76,7 +76,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
for (int i = 0; i < 3; i++) {
switch (svgStyle.paintOrderType(i)) {
case PT_FILL: {
- SkPaint fillPaint;
+ CdlPaint fillPaint;
if (!SVGPaintContext::paintForLayoutObject(
paintContext.paintInfo(), m_layoutSVGShape.styleRef(),
m_layoutSVGShape, ApplyToFillMode, fillPaint))
@@ -105,7 +105,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
additionalPaintServerTransform = &nonScalingTransform;
}
- SkPaint strokePaint;
+ CdlPaint strokePaint;
if (!SVGPaintContext::paintForLayoutObject(
paintContext.paintInfo(), m_layoutSVGShape.styleRef(),
m_layoutSVGShape, ApplyToStrokeMode, strokePaint,
@@ -158,7 +158,7 @@ class PathWithTemporaryWindingRule {
};
void SVGShapePainter::fillShape(GraphicsContext& context,
- const SkPaint& paint,
+ const CdlPaint& paint,
SkPath::FillType fillType) {
switch (m_layoutSVGShape.geometryCodePath()) {
case RectGeometryFastPath:
@@ -176,7 +176,7 @@ void SVGShapePainter::fillShape(GraphicsContext& context,
}
void SVGShapePainter::strokeShape(GraphicsContext& context,
- const SkPaint& paint) {
+ const CdlPaint& paint) {
if (!m_layoutSVGShape.style()->svgStyle().hasVisibleStroke())
return;
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGShapePainter.h ('k') | third_party/WebKit/Source/core/paint/ThemePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698