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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 /** | 553 /** |
554 * Reads data from the buffer parameter | 554 * Reads data from the buffer parameter |
555 * | 555 * |
556 * @param buffer Memory to read from | 556 * @param buffer Memory to read from |
557 * @param length Amount of memory available in the buffer | 557 * @param length Amount of memory available in the buffer |
558 * @return number of bytes read (must be a multiple of 4) or | 558 * @return number of bytes read (must be a multiple of 4) or |
559 * 0 if there was not enough memory available | 559 * 0 if there was not enough memory available |
560 */ | 560 */ |
561 size_t readFromMemory(const void* buffer, size_t length); | 561 size_t readFromMemory(const void* buffer, size_t length); |
562 | 562 |
563 SkDEVCODE(void dump() const;) | 563 void dump() const; |
564 SK_TO_STRING_NONVIRT() | 564 void toString(SkString*) const; |
565 | 565 |
566 /** | 566 /** |
567 * Calculates the minimum scaling factor of the matrix as computed from the
SVD of the upper | 567 * Calculates the minimum scaling factor of the matrix as computed from the
SVD of the upper |
568 * left 2x2. If the matrix has perspective -1 is returned. | 568 * left 2x2. If the matrix has perspective -1 is returned. |
569 * | 569 * |
570 * @return minumum scale factor | 570 * @return minumum scale factor |
571 */ | 571 */ |
572 SkScalar getMinScale() const; | 572 SkScalar getMinScale() const; |
573 | 573 |
574 /** | 574 /** |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], | 734 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], |
735 int count); | 735 int count); |
736 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); | 736 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); |
737 | 737 |
738 static const MapPtsProc gMapPtsProcs[]; | 738 static const MapPtsProc gMapPtsProcs[]; |
739 | 739 |
740 friend class SkPerspIter; | 740 friend class SkPerspIter; |
741 }; | 741 }; |
742 | 742 |
743 #endif | 743 #endif |
OLD | NEW |