diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-03 21:19:52 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-03 21:19:52 +0000 |
commit | 7d68335eb427547606497eb4edea81acce7891f9 (patch) | |
tree | 40cc09570d2161d203ae40068298e04f7c018849 /include/core | |
parent | dd3f7a9efefc486833d564527367155eb93691d4 (diff) |
add getTypes() to SkMatrix44, to cache how complex the matrix is.
add bench
optimize operator== by performing 4 compares in a row before checking
optimize setconcat by noting when we can write the answer directly into this
At least on this macbook, I had to mark helpers like isIdentity() as inline to get them inlined.
Review URL: https://codereview.appspot.com/6863053
git-svn-id: http://skia.googlecode.com/svn/trunk@6655 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPostConfig.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index 9a5c54a171..12fe87dafe 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -33,7 +33,9 @@ #if defined(SK_MSCALAR_IS_DOUBLE) && defined(SK_MSCALAR_IS_FLOAT) #error "cannot define both SK_MSCALAR_IS_DOUBLE and SK_MSCALAR_IS_FLOAT" #elif !defined(SK_MSCALAR_IS_DOUBLE) && !defined(SK_MSCALAR_IS_FLOAT) - #define SK_MSCALAR_IS_FLOAT + // default is double, as that is faster given our impl uses doubles + // for intermediate calculations. + #define SK_MSCALAR_IS_DOUBLE #endif #if defined(SK_CPU_LENDIAN) && defined(SK_CPU_BENDIAN) |