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

Unified Diff: third_party/WebKit/Source/core/paint/SVGShapePainter.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 months 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 3bdd569d41c69419752cb5001aea0f09fb02f8d4..da1a47722d4e295ee163c7967043efbd9629b15c 100644
--- a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
@@ -18,9 +18,8 @@
#include "core/paint/SVGPaintContext.h"
#include "core/paint/TransformRecorder.h"
#include "platform/graphics/GraphicsContextStateSaver.h"
+#include "platform/graphics/paint/PaintRecord.h"
#include "platform/graphics/paint/SkPictureBuilder.h"
-#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkPicture.h"
#include "wtf/Optional.h"
namespace blink {
@@ -76,7 +75,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
for (int i = 0; i < 3; i++) {
switch (svgStyle.paintOrderType(i)) {
case PT_FILL: {
- SkPaint fillPaint;
+ PaintFlags fillPaint;
if (!SVGPaintContext::paintForLayoutObject(
paintContext.paintInfo(), m_layoutSVGShape.styleRef(),
m_layoutSVGShape, ApplyToFillMode, fillPaint))
@@ -105,7 +104,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo) {
additionalPaintServerTransform = &nonScalingTransform;
}
- SkPaint strokePaint;
+ PaintFlags strokePaint;
if (!SVGPaintContext::paintForLayoutObject(
paintContext.paintInfo(), m_layoutSVGShape.styleRef(),
m_layoutSVGShape, ApplyToStrokeMode, strokePaint,
@@ -158,7 +157,7 @@ class PathWithTemporaryWindingRule {
};
void SVGShapePainter::fillShape(GraphicsContext& context,
- const SkPaint& paint,
+ const PaintFlags& paint,
SkPath::FillType fillType) {
switch (m_layoutSVGShape.geometryCodePath()) {
case RectGeometryFastPath:
@@ -176,7 +175,7 @@ void SVGShapePainter::fillShape(GraphicsContext& context,
}
void SVGShapePainter::strokeShape(GraphicsContext& context,
- const SkPaint& paint) {
+ const PaintFlags& 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