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

Unified Diff: Source/platform/graphics/Gradient.h

Issue 206493002: Minor Gradient cleanup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/css/CSSGradientValue.cpp ('k') | Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Gradient.h
diff --git a/Source/platform/graphics/Gradient.h b/Source/platform/graphics/Gradient.h
index 2cfb76c2824170e35ed375b5fb543bdedbeb1270..ff48b9f9a2e754a45a88ef4c864190461cc235dc 100644
--- a/Source/platform/graphics/Gradient.h
+++ b/Source/platform/graphics/Gradient.h
@@ -65,7 +65,7 @@ public:
ColorStop(float s, const Color& c) : stop(s), color(c) { }
};
void addColorStop(const ColorStop&);
- void addColorStop(float, const Color&);
+ void addColorStop(float value, const Color& color) { addColorStop(ColorStop(value, color)); }
bool hasAlpha() const;
bool shaderChanged() const { return !m_gradient; }
@@ -115,8 +115,6 @@ public:
SkShader* shader();
- void setStopsSorted(bool s) { m_stopsSorted = s; }
-
void setDrawsInPMColorSpace(bool drawInPMColorSpace);
void setSpreadMethod(GradientSpreadMethod);
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698