| Index: include/core/SkPostConfig.h
|
| diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
|
| index 53b4adfaa5833c6b732a1891ae13e4c18c9db5f2..fa18bfa2913785c22dec361f94e96527ee4783b4 100644
|
| --- a/include/core/SkPostConfig.h
|
| +++ b/include/core/SkPostConfig.h
|
| @@ -68,6 +68,15 @@
|
| # endif
|
| #endif
|
|
|
| +/**
|
| + * Used to align stack allocated variables/buffers.
|
| + */
|
| +#if defined(WIN32)
|
| +# 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
|
|
|