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

Side by Side Diff: src/core/SkEdge.cpp

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 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 | « include/views/SkEvent.h ('k') | src/core/SkMathPriv.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 #include "SkEdge.h" 9 #include "SkEdge.h"
10 #include "SkFDot6.h" 10 #include "SkFDot6.h"
11 #include "SkMath.h" 11 #include "SkMathPriv.h"
12 12
13 /* 13 /*
14 In setLine, setQuadratic, setCubic, the first thing we do is to convert 14 In setLine, setQuadratic, setCubic, the first thing we do is to convert
15 the points into FDot6. This is modulated by the shift parameter, which 15 the points into FDot6. This is modulated by the shift parameter, which
16 will either be 0, or something like 2 for antialiasing. 16 will either be 0, or something like 2 for antialiasing.
17 17
18 In the float case, we want to turn the float into .6 by saying pt * 64, 18 In the float case, we want to turn the float into .6 by saying pt * 64,
19 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6). 19 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6).
20 20
21 In the fixed case, we want to turn the fixed into .6 by saying pt >> 10, 21 In the fixed case, we want to turn the fixed into .6 by saying pt >> 10,
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 success = this->updateLine(oldx, oldy, newx, newy); 470 success = this->updateLine(oldx, oldy, newx, newy);
471 oldx = newx; 471 oldx = newx;
472 oldy = newy; 472 oldy = newy;
473 } while (count < 0 && !success); 473 } while (count < 0 && !success);
474 474
475 fCx = newx; 475 fCx = newx;
476 fCy = newy; 476 fCy = newy;
477 fCurveCount = SkToS8(count); 477 fCurveCount = SkToS8(count);
478 return success; 478 return success;
479 } 479 }
OLDNEW
« no previous file with comments | « include/views/SkEvent.h ('k') | src/core/SkMathPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698