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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@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/SkMultiPictureDraw.cpp ('k') | src/core/SkNinePatchIter.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 #ifndef SkNinePatchIter_DEFINED 8 #ifndef SkNinePatchIter_DEFINED
9 #define SkNinePatchIter_DEFINED 9 #define SkNinePatchIter_DEFINED
10 10
11 #include "SkScalar.h" 11 #include "SkScalar.h"
12 12
13 struct SkIRect; 13 struct SkIRect;
14 struct SkRect; 14 struct SkRect;
15 15
16 /** 16 /**
17 * Disect a ninepatch request into an sequence of src-rect / dst-rect pairs 17 * Disect a ninepatch request into an sequence of src-rect / dst-rect pairs
18 */ 18 */
19 class SkNinePatchIter { 19 class SkNinePatchIter {
20 public: 20 public:
21 static bool Valid(int imageWidth, int imageHeight, const SkIRect& center); 21 static bool Valid(int imageWidth, int imageHeight, const SkIRect& center);
22 22
23 SkNinePatchIter(int imageWidth, int imageHeight, const SkIRect& center, cons t SkRect& dst); 23 SkNinePatchIter(int imageWidth, int imageHeight, const SkIRect& center, cons t SkRect& dst);
24 24
25 /** 25 /**
26 * While it returns true, use src/dst to draw the image/bitmap 26 * While it returns true, use src/dst to draw the image/bitmap
27 */ 27 */
28 bool next(SkRect* src, SkRect* dst); 28 bool next(SkRect* src, SkRect* dst);
29 29
30 private: 30 private:
31 SkScalar fSrcX[4]; 31 SkScalar fSrcX[4];
32 SkScalar fSrcY[4]; 32 SkScalar fSrcY[4];
33 SkScalar fDstX[4]; 33 SkScalar fDstX[4];
34 SkScalar fDstY[4]; 34 SkScalar fDstY[4];
35 35
36 int fCurrX; 36 int fCurrX;
37 int fCurrY; 37 int fCurrY;
38 bool fDone; 38 bool fDone;
39 }; 39 };
40 40
41 #endif 41 #endif
42
OLDNEW
« no previous file with comments | « src/core/SkMultiPictureDraw.cpp ('k') | src/core/SkNinePatchIter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698