| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkMatrix.h" | 8 #include "SkMatrix.h" |
| 9 #include "SkFloatBits.h" | 9 #include "SkFloatBits.h" |
| 10 #include "SkOnce.h" | 10 #include "SkOnce.h" |
| (...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 } | 1591 } |
| 1592 return sizeInMemory; | 1592 return sizeInMemory; |
| 1593 } | 1593 } |
| 1594 | 1594 |
| 1595 #ifdef SK_DEVELOPER | 1595 #ifdef SK_DEVELOPER |
| 1596 void SkMatrix::dump() const { | 1596 void SkMatrix::dump() const { |
| 1597 SkString str; | 1597 SkString str; |
| 1598 this->toString(&str); | 1598 this->toString(&str); |
| 1599 SkDebugf("%s\n", str.c_str()); | 1599 SkDebugf("%s\n", str.c_str()); |
| 1600 } | 1600 } |
| 1601 #endif |
| 1601 | 1602 |
| 1603 #ifndef SK_IGNORE_TO_STRING |
| 1602 void SkMatrix::toString(SkString* str) const { | 1604 void SkMatrix::toString(SkString* str) const { |
| 1603 str->appendf("[%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f]", | 1605 str->appendf("[%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f]", |
| 1604 fMat[0], fMat[1], fMat[2], fMat[3], fMat[4], fMat[5], | 1606 fMat[0], fMat[1], fMat[2], fMat[3], fMat[4], fMat[5], |
| 1605 fMat[6], fMat[7], fMat[8]); | 1607 fMat[6], fMat[7], fMat[8]); |
| 1606 } | 1608 } |
| 1607 #endif | 1609 #endif |
| 1608 | 1610 |
| 1609 /////////////////////////////////////////////////////////////////////////////// | 1611 /////////////////////////////////////////////////////////////////////////////// |
| 1610 | 1612 |
| 1611 #include "SkMatrixUtils.h" | 1613 #include "SkMatrixUtils.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 rotation1->fX = cos1; | 1754 rotation1->fX = cos1; |
| 1753 rotation1->fY = sin1; | 1755 rotation1->fY = sin1; |
| 1754 } | 1756 } |
| 1755 if (NULL != rotation2) { | 1757 if (NULL != rotation2) { |
| 1756 rotation2->fX = cos2; | 1758 rotation2->fX = cos2; |
| 1757 rotation2->fY = sin2; | 1759 rotation2->fY = sin2; |
| 1758 } | 1760 } |
| 1759 | 1761 |
| 1760 return true; | 1762 return true; |
| 1761 } | 1763 } |
| OLD | NEW |