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

Unified Diff: sky/engine/core/painting/Paint.h

Issue 1162393002: Simplify TransferMode and Color types. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: format Created 5 years, 7 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 | « sky/engine/core/painting/DrawLooperLayerInfo.h ('k') | sky/engine/core/painting/Point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Paint.h
diff --git a/sky/engine/core/painting/Paint.h b/sky/engine/core/painting/Paint.h
index a8af3cac141b6192529dfbee68c4a700bb292546..402080a1a85220d5dc8b5d233219e328a9ba0b25 100644
--- a/sky/engine/core/painting/Paint.h
+++ b/sky/engine/core/painting/Paint.h
@@ -29,9 +29,8 @@ public:
bool isAntiAlias() const { return m_paint.isAntiAlias(); }
void setIsAntiAlias(bool value) { m_paint.setAntiAlias(value); }
- unsigned color() const { return m_paint.getColor(); }
- void setColor(unsigned color) { m_paint.setColor(color); }
- void setColor(CanvasColor color) { m_paint.setColor(color.sk_color); }
+ SkColor color() const { return m_paint.getColor(); }
+ void setColor(SkColor color) { m_paint.setColor(color); }
void setARGB(unsigned a, unsigned r, unsigned g, unsigned b)
{
« no previous file with comments | « sky/engine/core/painting/DrawLooperLayerInfo.h ('k') | sky/engine/core/painting/Point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698