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

Unified Diff: Source/core/layout/svg/LayoutSVGResourcePaintServer.h

Issue 1052873003: Explicitly use SkPaint(s) in SVGShapePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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: Source/core/layout/svg/LayoutSVGResourcePaintServer.h
diff --git a/Source/core/layout/svg/LayoutSVGResourcePaintServer.h b/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
index 651e00a965a1c3d5ad4d8dfb31b75343fde40e59..8dfa1392bd194b5b79933200545956faca08f96a 100644
--- a/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
+++ b/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
@@ -25,6 +25,8 @@
#include "platform/graphics/Gradient.h"
#include "platform/graphics/Pattern.h"
+class SkPaint;
+
namespace blink {
enum LayoutSVGResourceMode {
@@ -47,6 +49,7 @@ public:
static SVGPaintServer requestForLayoutObject(const LayoutObject&, const ComputedStyle&, LayoutSVGResourceMode);
static bool existsForLayoutObject(const LayoutObject&, const ComputedStyle&, LayoutSVGResourceMode);
+ void transferToSkPaint(SkPaint&, float paintAlpha);
void apply(GraphicsContext&, LayoutSVGResourceMode, float paintAlpha, GraphicsContextStateSaver&);
static SVGPaintServer invalid() { return SVGPaintServer(Color(Color::transparent)); }

Powered by Google App Engine
This is Rietveld 408576698