| OLD | NEW |
| 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 * Copyright (C) 2009 Torch Mobile, Inc. | 3 * Copyright (C) 2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "core/platform/graphics/transforms/TransformationMatrix.h" | 29 #include "core/platform/graphics/transforms/TransformationMatrix.h" |
| 30 | 30 |
| 31 #include "SkiaUtils.h" | |
| 32 #include "core/platform/graphics/FloatQuad.h" | 31 #include "core/platform/graphics/FloatQuad.h" |
| 33 #include "core/platform/graphics/FloatRect.h" | 32 #include "core/platform/graphics/FloatRect.h" |
| 34 #include "core/platform/graphics/IntRect.h" | 33 #include "core/platform/graphics/IntRect.h" |
| 35 #include "core/platform/graphics/LayoutRect.h" | 34 #include "core/platform/graphics/LayoutRect.h" |
| 35 #include "core/platform/graphics/skia/SkiaUtils.h" |
| 36 #include "core/platform/graphics/transforms/AffineTransform.h" | 36 #include "core/platform/graphics/transforms/AffineTransform.h" |
| 37 | 37 |
| 38 #include <wtf/Assertions.h> | 38 #include <wtf/Assertions.h> |
| 39 #include <wtf/MathExtras.h> | 39 #include <wtf/MathExtras.h> |
| 40 | 40 |
| 41 #if CPU(X86_64) | 41 #if CPU(X86_64) |
| 42 #include <emmintrin.h> | 42 #include <emmintrin.h> |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 using namespace std; | 45 using namespace std; |
| (...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 if (fabs(determinant) < SMALL_NUMBER) | 1522 if (fabs(determinant) < SMALL_NUMBER) |
| 1523 return false; | 1523 return false; |
| 1524 | 1524 |
| 1525 double cofactor33 = determinant3x3(m11(), m12(), m14(), m21(), m22(), m24(),
m41(), m42(), m44()); | 1525 double cofactor33 = determinant3x3(m11(), m12(), m14(), m21(), m22(), m24(),
m41(), m42(), m44()); |
| 1526 double zComponentOfTransformedNormal = cofactor33 / determinant; | 1526 double zComponentOfTransformedNormal = cofactor33 / determinant; |
| 1527 | 1527 |
| 1528 return zComponentOfTransformedNormal < 0; | 1528 return zComponentOfTransformedNormal < 0; |
| 1529 } | 1529 } |
| 1530 | 1530 |
| 1531 } | 1531 } |
| OLD | NEW |