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

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

Issue 1126993003: experimental path-builder Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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/SkPathBuilder.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkPathIter.h"
9
10 bool SkPathIter::next() {
11 if (fStopVerbs == fVerbs) {
12 return false;
13 }
14
15 #if 0
16 const uint8_t gPtsPerVerb[] = {
17 1, // Move
18 1, // Line
19 2, // Quad
20 2, // Conic
21 3, // Cubic
22 0, // Close
23 };
24 #endif
25
26 fCurrPts += fPrevPtsPerVerb;
27 SkPathVerb verb = (SkPathVerb)(*--fVerbs);
28 #if 0
29 fPrevPtsPerVerb = gPtsPerVerb[verb];
30 #elif 0
31 fPrevPtsPerVerb = ((verb >> 1) + 1) & -(kClose_SkPathVerb == verb);
32 #else
33 fPrevPtsPerVerb = (verb >> 4) & 7;
34 #endif
35 fNextPts += fPrevPtsPerVerb;
36 fConicW += (verb >> 7);//(kConic_SkPathVerb == verb);
37 return true;
38 }
39
OLDNEW
« no previous file with comments | « src/core/SkPathBuilder.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698