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

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

Issue 1192853002: Fix precision error in https://codereview.chromium.org/1188433011/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 kRectStaysRect_Mask 716 kRectStaysRect_Mask
717 }; 717 };
718 718
719 SkScalar fMat[9]; 719 SkScalar fMat[9];
720 mutable uint32_t fTypeMask; 720 mutable uint32_t fTypeMask;
721 721
722 /** Are all elements of the matrix finite? 722 /** Are all elements of the matrix finite?
723 */ 723 */
724 bool isFinite() const; 724 bool isFinite() const;
725 725
726 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], SkScalar invD et, bool isPersp); 726 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet , bool isPersp);
727 727
728 void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) { 728 void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) {
729 fMat[kMScaleX] = sx; 729 fMat[kMScaleX] = sx;
730 fMat[kMSkewX] = 0; 730 fMat[kMSkewX] = 0;
731 fMat[kMTransX] = tx; 731 fMat[kMTransX] = tx;
732 732
733 fMat[kMSkewY] = 0; 733 fMat[kMSkewY] = 0;
734 fMat[kMScaleY] = sy; 734 fMat[kMScaleY] = sy;
735 fMat[kMTransY] = ty; 735 fMat[kMTransY] = ty;
736 736
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); 812 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
813 813
814 static void Affine_vpts(const SkMatrix&, SkPoint dst[], const SkPoint[], int ); 814 static void Affine_vpts(const SkMatrix&, SkPoint dst[], const SkPoint[], int );
815 815
816 static const MapPtsProc gMapPtsProcs[]; 816 static const MapPtsProc gMapPtsProcs[];
817 817
818 friend class SkPerspIter; 818 friend class SkPerspIter;
819 }; 819 };
820 820
821 #endif 821 #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