Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: include/core/SkMatrix.h

Issue 624783002: make SkMatrix::dump always available (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698