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

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: Use GC::draw*; transfer->apply. Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ed7eb2b088a29ce1d60d402eb92acbc14f0721b 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 applyToSkPaint(SkPaint&, float paintAlpha);
void apply(GraphicsContext&, LayoutSVGResourceMode, float paintAlpha, GraphicsContextStateSaver&);
static SVGPaintServer invalid() { return SVGPaintServer(Color(Color::transparent)); }
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698