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

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

Issue 282293004: Centralize decision about whether to do bicubic filtering, and fallbacks to mip, bilerp, or nearest (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add braces to case Created 6 years, 7 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 | Annotate | Revision Log
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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 * @return maximum scale factor 577 * @return maximum scale factor
578 */ 578 */
579 SkScalar getMaxScale() const; 579 SkScalar getMaxScale() const;
580 580
581 /** 581 /**
582 * Gets both the min and max scale factors. The min scale factor is scaleFac tors[0] and the max 582 * Gets both the min and max scale factors. The min scale factor is scaleFac tors[0] and the max
583 * is scaleFactors[1]. If the matrix has perspective -1 will be returned and scaleFactors will 583 * is scaleFactors[1]. If the matrix has perspective -1 will be returned and scaleFactors will
584 * be unchanged. 584 * be unchanged.
585 */ 585 */
586 bool getScaleFactors(SkScalar scaleFactors[2]) const; 586 bool getScaleFactors(SkScalar scaleFactors[2]) const;
587 587
588 /** 588 /**
589 * Return a reference to a const identity matrix 589 * Return a reference to a const identity matrix
590 */ 590 */
591 static const SkMatrix& I(); 591 static const SkMatrix& I();
592 592
593 /** 593 /**
594 * Return a reference to a const matrix that is "invalid", one that could 594 * Return a reference to a const matrix that is "invalid", one that could
595 * never be used. 595 * never be used.
596 */ 596 */
597 static const SkMatrix& InvalidMatrix(); 597 static const SkMatrix& InvalidMatrix();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], 710 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[],
711 int count); 711 int count);
712 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); 712 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
713 713
714 static const MapPtsProc gMapPtsProcs[]; 714 static const MapPtsProc gMapPtsProcs[];
715 715
716 friend class SkPerspIter; 716 friend class SkPerspIter;
717 }; 717 };
718 718
719 #endif 719 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698