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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.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/layout/svg/LayoutSVGResourcePaintServer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
index eae1e9ff81e0fd727791d5114744c647ba84a85e..aefdfb2c727255363820ef89d0407e1479c8220f 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
@@ -25,6 +25,8 @@
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/style/ComputedStyle.h"
+#include "platform/graphics/paint/PaintCanvas.h"
+#include "platform/graphics/paint/PaintFlags.h"
#include "platform/graphics/skia/SkiaUtils.h"
#include "third_party/skia/include/core/SkPaint.h"
@@ -40,7 +42,7 @@ SVGPaintServer::SVGPaintServer(PassRefPtr<Pattern> pattern,
const AffineTransform& transform)
: m_pattern(pattern), m_transform(transform), m_color(Color::black) {}
-void SVGPaintServer::applyToSkPaint(SkPaint& paint, float paintAlpha) {
+void SVGPaintServer::applyToSkPaint(PaintFlags& paint, float paintAlpha) {
SkColor baseColor = m_gradient || m_pattern ? SK_ColorBLACK : m_color.rgb();
paint.setColor(scaleAlpha(baseColor, paintAlpha));
if (m_pattern) {

Powered by Google App Engine
This is Rietveld 408576698