| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkMatrix_DEFINED | 10 #ifndef SkMatrix_DEFINED |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 * @param length Amount of memory available in the buffer | 556 * @param length Amount of memory available in the buffer |
| 557 * @return number of bytes read (must be a multiple of 4) or | 557 * @return number of bytes read (must be a multiple of 4) or |
| 558 * 0 if there was not enough memory available | 558 * 0 if there was not enough memory available |
| 559 */ | 559 */ |
| 560 size_t readFromMemory(const void* buffer, size_t length); | 560 size_t readFromMemory(const void* buffer, size_t length); |
| 561 | 561 |
| 562 SkDEVCODE(void dump() const;) | 562 SkDEVCODE(void dump() const;) |
| 563 SK_TO_STRING_NONVIRT() | 563 SK_TO_STRING_NONVIRT() |
| 564 | 564 |
| 565 /** | 565 /** |
| 566 * Calculates the minimum stretching factor of the matrix. If the matrix has | 566 * Calculates the minimum scaling factor of the matrix. If the matrix has |
| 567 * perspective -1 is returned. | 567 * perspective -1 is returned. |
| 568 * | 568 * |
| 569 * @return minumum strecthing factor | 569 * @return minumum scale factor |
| 570 */ | 570 */ |
| 571 SkScalar getMinStretch() const; | 571 SkScalar getMinScale() const; |
| 572 | 572 |
| 573 /** | 573 /** |
| 574 * Calculates the maximum stretching factor of the matrix. If the matrix has | 574 * Calculates the maximum scale factor of the matrix. If the matrix has |
| 575 * perspective -1 is returned. | 575 * perspective -1 is returned. |
| 576 * | 576 * |
| 577 * @return maximum strecthing factor | 577 * @return maximum scale factor |
| 578 */ | 578 */ |
| 579 SkScalar getMaxStretch() const; | 579 SkScalar getMaxScale() const; |
| 580 | 580 |
| 581 /** | 581 /** |
| 582 * Return a reference to a const identity matrix | 582 * Return a reference to a const identity matrix |
| 583 */ | 583 */ |
| 584 static const SkMatrix& I(); | 584 static const SkMatrix& I(); |
| 585 | 585 |
| 586 /** | 586 /** |
| 587 * Return a reference to a const matrix that is "invalid", one that could | 587 * Return a reference to a const matrix that is "invalid", one that could |
| 588 * never be used. | 588 * never be used. |
| 589 */ | 589 */ |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], | 703 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], |
| 704 int count); | 704 int count); |
| 705 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); | 705 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); |
| 706 | 706 |
| 707 static const MapPtsProc gMapPtsProcs[]; | 707 static const MapPtsProc gMapPtsProcs[]; |
| 708 | 708 |
| 709 friend class SkPerspIter; | 709 friend class SkPerspIter; |
| 710 }; | 710 }; |
| 711 | 711 |
| 712 #endif | 712 #endif |
| OLD | NEW |