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

Unified Diff: Source/core/html/canvas/CanvasStyle.h

Issue 1008173003: Move SkPaint mangement for 2D canvas into CanvasRenderingContext2DState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: applied review comments 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
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2DState.cpp ('k') | Source/core/html/canvas/CanvasStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasStyle.h
diff --git a/Source/core/html/canvas/CanvasStyle.h b/Source/core/html/canvas/CanvasStyle.h
index cdcb7f673a533019c8fdbebd93fab353090d987b..94ec768ad07cfd2593b0bc7345b5214eea9b95c9 100644
--- a/Source/core/html/canvas/CanvasStyle.h
+++ b/Source/core/html/canvas/CanvasStyle.h
@@ -33,6 +33,8 @@
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
+class SkShader;
+
namespace blink {
class CanvasGradient;
@@ -50,8 +52,10 @@ namespace blink {
CanvasGradient* canvasGradient() const { return m_gradient.get(); }
CanvasPattern* canvasPattern() const { return m_pattern.get(); }
- void applyFillColor(GraphicsContext*);
- void applyStrokeColor(GraphicsContext*);
+ void applyFillColor(GraphicsContext*); // Deprecated
+ void applyStrokeColor(GraphicsContext*); // Deprecated
+ SkShader* shader() const;
+ RGBA32 paintColor() const;
bool isEquivalentRGBA(RGBA32 rgba) const { return m_type == ColorRGBA && m_rgba == rgba; }
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2DState.cpp ('k') | Source/core/html/canvas/CanvasStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698