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

Unified Diff: sky/engine/platform/transforms/TransformationMatrix.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
Index: sky/engine/platform/transforms/TransformationMatrix.h
diff --git a/sky/engine/platform/transforms/TransformationMatrix.h b/sky/engine/platform/transforms/TransformationMatrix.h
index 8ca357c7be01fd2760a0738dc6bbf076f3b257af..660fa763b95c2b83c377c2a62f2d7888fd487487 100644
--- a/sky/engine/platform/transforms/TransformationMatrix.h
+++ b/sky/engine/platform/transforms/TransformationMatrix.h
@@ -51,7 +51,11 @@ class PLATFORM_EXPORT TransformationMatrix {
public:
#if CPU(APPLE_ARMV7S) || defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2)
+#if COMPILER(MSVC)
+ __declspec(align(16)) typedef double Matrix4[4][4];
+#else
typedef double Matrix4[4][4] __attribute__((aligned (16)));
+#endif
#else
typedef double Matrix4[4][4];
#endif

Powered by Google App Engine
This is Rietveld 408576698