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

Unified Diff: sky/engine/core/painting/CanvasColor.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/bindings/scripts/dart_types.py ('k') | sky/engine/core/painting/CanvasColor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/CanvasColor.h
diff --git a/sky/engine/core/painting/CanvasColor.h b/sky/engine/core/painting/CanvasColor.h
index 43e719c214b0a2ff589acaf0e1c1ee56b8f7bd37..04205f6e4927ed29005a7dfba7ef31da35f90206 100644
--- a/sky/engine/core/painting/CanvasColor.h
+++ b/sky/engine/core/painting/CanvasColor.h
@@ -13,17 +13,14 @@
namespace blink {
-class CanvasColor {
- public:
- SkColor sk_color;
-};
+class CanvasColor {};
-template<>
-struct DartConverter<CanvasColor, void> {
- static CanvasColor FromArgumentsWithNullCheck(Dart_NativeArguments args,
- int index,
- Dart_Handle& exception);
- static void SetReturnValue(Dart_NativeArguments args, unsigned val);
+template <>
+struct DartConverter<CanvasColor> {
+ static SkColor FromArgumentsWithNullCheck(Dart_NativeArguments args,
+ int index,
+ Dart_Handle& exception);
+ static void SetReturnValue(Dart_NativeArguments args, SkColor val);
};
} // namespace blink
« no previous file with comments | « sky/engine/bindings/scripts/dart_types.py ('k') | sky/engine/core/painting/CanvasColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698