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

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

Issue 105353002: Do not use GrBicubic effect when downscaling. Also, don't use glTexStorage as it interferes with de… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fixup Created 7 years 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
« no previous file with comments | « no previous file | src/core/SkBitmapProcShader.cpp » ('j') | src/core/SkBitmapProcShader.cpp » ('J')
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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 * @param length Amount of memory available in the buffer 567 * @param length Amount of memory available in the buffer
568 * @return number of bytes read (must be a multiple of 4) or 568 * @return number of bytes read (must be a multiple of 4) or
569 * 0 if there was not enough memory available 569 * 0 if there was not enough memory available
570 */ 570 */
571 size_t readFromMemory(const void* buffer, size_t length); 571 size_t readFromMemory(const void* buffer, size_t length);
572 572
573 SkDEVCODE(void dump() const;) 573 SkDEVCODE(void dump() const;)
574 SkDEVCODE(void toString(SkString*) const;) 574 SkDEVCODE(void toString(SkString*) const;)
575 575
576 /** 576 /**
577 * Calculates the minimum stretching factor of the matrix. If the matrix has
578 * perspective -1 is returned.
579 *
580 * @return minumum strecthing factor
581 */
582 SkScalar getMinStretch() const;
583
584 /**
577 * Calculates the maximum stretching factor of the matrix. If the matrix has 585 * Calculates the maximum stretching factor of the matrix. If the matrix has
578 * perspective -1 is returned. 586 * perspective -1 is returned.
579 * 587 *
580 * @return maximum strecthing factor 588 * @return maximum strecthing factor
581 */ 589 */
582 SkScalar getMaxStretch() const; 590 SkScalar getMaxStretch() const;
583 591
robertphillips 2013/12/04 23:31:55 Don't think we want this extra space.
bsalomon 2013/12/09 18:44:31 Done.
584 /** 592 /**
585 * Return a reference to a const identity matrix 593 * Return a reference to a const identity matrix
586 */ 594 */
587 static const SkMatrix& I(); 595 static const SkMatrix& I();
588 596
589 /** 597 /**
590 * Return a reference to a const matrix that is "invalid", one that could 598 * Return a reference to a const matrix that is "invalid", one that could
591 * never be used. 599 * never be used.
592 */ 600 */
593 static const SkMatrix& InvalidMatrix(); 601 static const SkMatrix& InvalidMatrix();
594 602
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], 705 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[],
698 int count); 706 int count);
699 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); 707 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
700 708
701 static const MapPtsProc gMapPtsProcs[]; 709 static const MapPtsProc gMapPtsProcs[];
702 710
703 friend class SkPerspIter; 711 friend class SkPerspIter;
704 }; 712 };
705 713
706 #endif 714 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapProcShader.cpp » ('j') | src/core/SkBitmapProcShader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698