diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-23 16:05:43 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-23 16:05:43 +0000 |
commit | 0533146d0056d4a65de12cc2b08e2e931efbd46e (patch) | |
tree | 6d3491f0ea94db55e13f1c534d0f76e124a56146 /include | |
parent | a3746a0f415f19679318d30c05015f4b7f9adbbd (diff) |
Modify sample buffer size for larger displays.
Increases the intermediate buffer size for sample pixel indexes,
used in the sample proc function calls. If the operation is bigger
than the buffer it's split into multiple calls, creating overhead.
This would especially impact the performance of SIMD optimizations.
Also, aligns the start address of the buffer to 16 bytes, to enable
more efficient SIMD optimizations.
Author: henrik.smiding@intel.com
Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
Committed: http://code.google.com/p/skia/source/detail?r=14825
R=reed@google.com, mtklein@google.com, tomhudson@google.com, djsollen@google.com, joakim.landberg@intel.com, scroggo@google.com, bsalomon@chromium.org, bsalomon@google.com
Author: henrik.smiding@intel.com
Review URL: https://codereview.chromium.org/240433002
git-svn-id: http://skia.googlecode.com/svn/trunk@14872 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPostConfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index 88a2bfcb64..325343425a 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -68,6 +68,16 @@ # endif #endif +/** + * Used to align stack allocated variables/buffers. + * Different compilers have different ways to accomplish this. + */ +#if defined(_MSC_VER) +# define SK_ALIGN(x) __declspec(align(x)) +#else +# define SK_ALIGN(x) __attribute__((aligned(x))) +#endif + #if !defined(SK_SUPPORT_GPU) # define SK_SUPPORT_GPU 1 #endif |