commit | b5e34e22aa0e019e25f9f913f0e119a9a97e5562 | [log] [tgz] |
---|---|---|
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue May 07 15:28:15 2013 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue May 07 15:28:15 2013 +0000 |
tree | c064647d66956478b92bf2adcb16025daafc29b3 | |
parent | 2983ddd4b57a05e3262fe2c1964a34f1717a5a1c [diff] [blame] |
XPS ttc handling. R=reed@google.com Author: bungeman@google.com Review URL: https://chromiumcodereview.appspot.com/14873006 git-svn-id: http://skia.googlecode.com/svn/trunk@9037 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/device/xps/SkConstexprMath.h b/include/device/xps/SkConstexprMath.h index 65b70b6..9625d51 100644 --- a/include/device/xps/SkConstexprMath.h +++ b/include/device/xps/SkConstexprMath.h
@@ -46,7 +46,9 @@ */ #define SK_DIGITS_IN(t) SK_BASE_N_DIGITS_IN(10, (t)) -//! a > b ? a : b -#define SK_MAX(a,b) (((a) > (b)) ? (a) : (b)) +// Compile-time constant maximum value of two unsigned values. +template <uintmax_t a, uintmax_t b> struct SkTUMax { + static const uintmax_t value = (b < a) ? a : b; +}; #endif