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

Side by Side Diff: src/core/SkPerspIter.h

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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 | « src/core/SkMath.cpp ('k') | src/core/SkReadBuffer.h » ('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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SkPerspIter_DEFINED 9 #ifndef SkPerspIter_DEFINED
10 #define SkPerspIter_DEFINED 10 #define SkPerspIter_DEFINED
11 11
12 #include "SkFixed.h"
12 #include "SkMatrix.h" 13 #include "SkMatrix.h"
13 14
14 class SkPerspIter { 15 class SkPerspIter {
15 public: 16 public:
16 /** Iterate a line through the matrix [x,y] ... [x+count-1, y]. 17 /** Iterate a line through the matrix [x,y] ... [x+count-1, y].
17 @param m The matrix we will be iterating a line through 18 @param m The matrix we will be iterating a line through
18 @param x The initial X coordinate to be mapped through the matrix 19 @param x The initial X coordinate to be mapped through the matrix
19 @param y The initial Y coordinate to be mapped through the matrix 20 @param y The initial Y coordinate to be mapped through the matrix
20 @param count The number of points (x,y) (x+1,y) (x+2,y) ... we will even tually map 21 @param count The number of points (x,y) (x+1,y) (x+2,y) ... we will even tually map
21 */ 22 */
(...skipping 16 matching lines...) Expand all
38 kCount = (1 << kShift) 39 kCount = (1 << kShift)
39 }; 40 };
40 const SkMatrix& fMatrix; 41 const SkMatrix& fMatrix;
41 SkFixed fStorage[kCount * 2]; 42 SkFixed fStorage[kCount * 2];
42 SkFixed fX, fY; 43 SkFixed fX, fY;
43 SkScalar fSX, fSY; 44 SkScalar fSX, fSY;
44 int fCount; 45 int fCount;
45 }; 46 };
46 47
47 #endif 48 #endif
OLDNEW
« no previous file with comments | « src/core/SkMath.cpp ('k') | src/core/SkReadBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698