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

Unified Diff: src/core/Sk4x.h

Issue 960773005: Think implicit promotion is a good idea? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | src/core/Sk4x_portable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/Sk4x.h
diff --git a/src/core/Sk4x.h b/src/core/Sk4x.h
index 7c246dffc01b7265c44772f2328f0ad385adba1c..058c40038037f0516efae2ccc8dfead9bb749ef4 100644
--- a/src/core/Sk4x.h
+++ b/src/core/Sk4x.h
@@ -22,7 +22,8 @@ typedef Sk4x<int32_t> Sk4i;
template <typename T> class Sk4x {
public:
- Sk4x(); // Uninitialized; use Sk4x(0,0,0,0) for zero.
+ Sk4x(); // Uninitialized; use Sk4x(0) for zero.
+ /*implicit*/ Sk4x(T); // Same as Sk4x(T,T,T,T);
Sk4x(T, T, T, T);
Sk4x(const Sk4x&);
« no previous file with comments | « no previous file | src/core/Sk4x_portable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698