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

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.h

Issue 2539803003: Add back ARMv7 NEON optimization for TransformationMatrix::multiply
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #define TRANSFORMATION_MATRIX_USE_X86_64_SSE2 50 #define TRANSFORMATION_MATRIX_USE_X86_64_SSE2
51 #endif 51 #endif
52 52
53 // TransformationMatrix must not be allocated on Oilpan's heap since 53 // TransformationMatrix must not be allocated on Oilpan's heap since
54 // Oilpan doesn't (yet) have an ability to allocate the TransformationMatrix 54 // Oilpan doesn't (yet) have an ability to allocate the TransformationMatrix
55 // with 16-byte alignment. PartitionAlloc has the ability. 55 // with 16-byte alignment. PartitionAlloc has the ability.
56 class PLATFORM_EXPORT TransformationMatrix { 56 class PLATFORM_EXPORT TransformationMatrix {
57 USING_FAST_MALLOC(TransformationMatrix); 57 USING_FAST_MALLOC(TransformationMatrix);
58 58
59 public: 59 public:
60 #if defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2) 60 #if defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2) || CPU(ARM) && CPU(ARM_NEON)
61 typedef WTF_ALIGNED(double, Matrix4[4][4], 16); 61 typedef WTF_ALIGNED(double, Matrix4[4][4], 16);
62 #else 62 #else
63 typedef double Matrix4[4][4]; 63 typedef double Matrix4[4][4];
64 #endif 64 #endif
65 65
66 static std::unique_ptr<TransformationMatrix> create() { 66 static std::unique_ptr<TransformationMatrix> create() {
67 return makeUnique<TransformationMatrix>(); 67 return makeUnique<TransformationMatrix>();
68 } 68 }
69 static std::unique_ptr<TransformationMatrix> create( 69 static std::unique_ptr<TransformationMatrix> create(
70 const TransformationMatrix& t) { 70 const TransformationMatrix& t) {
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 Matrix4 m_matrix; 490 Matrix4 m_matrix;
491 }; 491 };
492 492
493 // Redeclared here to avoid ODR issues. 493 // Redeclared here to avoid ODR issues.
494 // See platform/testing/TransformPrinters.h. 494 // See platform/testing/TransformPrinters.h.
495 void PrintTo(const TransformationMatrix&, std::ostream*); 495 void PrintTo(const TransformationMatrix&, std::ostream*);
496 496
497 } // namespace blink 497 } // namespace blink
498 498
499 #endif // TransformationMatrix_h 499 #endif // TransformationMatrix_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698