Chromium Code Reviews| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 567 * @param length Amount of memory available in the buffer | 567 * @param length Amount of memory available in the buffer |
| 568 * @return number of bytes read (must be a multiple of 4) or | 568 * @return number of bytes read (must be a multiple of 4) or |
| 569 * 0 if there was not enough memory available | 569 * 0 if there was not enough memory available |
| 570 */ | 570 */ |
| 571 size_t readFromMemory(const void* buffer, size_t length); | 571 size_t readFromMemory(const void* buffer, size_t length); |
| 572 | 572 |
| 573 SkDEVCODE(void dump() const;) | 573 SkDEVCODE(void dump() const;) |
| 574 SkDEVCODE(void toString(SkString*) const;) | 574 SkDEVCODE(void toString(SkString*) const;) |
| 575 | 575 |
| 576 /** | 576 /** |
| 577 * Calculates the minimum stretching factor of the matrix. If the matrix has | |
| 578 * perspective -1 is returned. | |
| 579 * | |
| 580 * @return minumum strecthing factor | |
| 581 */ | |
| 582 SkScalar getMinStretch() const; | |
| 583 | |
| 584 /** | |
| 577 * Calculates the maximum stretching factor of the matrix. If the matrix has | 585 * Calculates the maximum stretching factor of the matrix. If the matrix has |
| 578 * perspective -1 is returned. | 586 * perspective -1 is returned. |
| 579 * | 587 * |
| 580 * @return maximum strecthing factor | 588 * @return maximum strecthing factor |
| 581 */ | 589 */ |
| 582 SkScalar getMaxStretch() const; | 590 SkScalar getMaxStretch() const; |
| 583 | 591 |
|
robertphillips
2013/12/04 23:31:55
Don't think we want this extra space.
bsalomon
2013/12/09 18:44:31
Done.
| |
| 584 /** | 592 /** |
| 585 * Return a reference to a const identity matrix | 593 * Return a reference to a const identity matrix |
| 586 */ | 594 */ |
| 587 static const SkMatrix& I(); | 595 static const SkMatrix& I(); |
| 588 | 596 |
| 589 /** | 597 /** |
| 590 * Return a reference to a const matrix that is "invalid", one that could | 598 * Return a reference to a const matrix that is "invalid", one that could |
| 591 * never be used. | 599 * never be used. |
| 592 */ | 600 */ |
| 593 static const SkMatrix& InvalidMatrix(); | 601 static const SkMatrix& InvalidMatrix(); |
| 594 | 602 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 697 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], | 705 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], |
| 698 int count); | 706 int count); |
| 699 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); | 707 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); |
| 700 | 708 |
| 701 static const MapPtsProc gMapPtsProcs[]; | 709 static const MapPtsProc gMapPtsProcs[]; |
| 702 | 710 |
| 703 friend class SkPerspIter; | 711 friend class SkPerspIter; |
| 704 }; | 712 }; |
| 705 | 713 |
| 706 #endif | 714 #endif |
| OLD | NEW |