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 * Reads data from the buffer parameter | 553 * Reads data from the buffer parameter |
554 * | 554 * |
555 * @param buffer Memory to read from | 555 * @param buffer Memory to read from |
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 SkDEVCODE(void toString(SkString*) const;) | 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 stretching 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 strecthing factor |
570 */ | 570 */ |
571 SkScalar getMinStretch() const; | 571 SkScalar getMinStretch() const; |
572 | 572 |
573 /** | 573 /** |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], | 694 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], |
695 int count); | 695 int count); |
696 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); | 696 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); |
697 | 697 |
698 static const MapPtsProc gMapPtsProcs[]; | 698 static const MapPtsProc gMapPtsProcs[]; |
699 | 699 |
700 friend class SkPerspIter; | 700 friend class SkPerspIter; |
701 }; | 701 }; |
702 | 702 |
703 #endif | 703 #endif |
OLD | NEW |