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

Side by Side Diff: src/gpu/GrPathUtils.h

Issue 309683002: Move GrIPoint16 to SkIPoint16 (and remove GrPoint.h) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 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 | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrPathUtils.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 2011 Google Inc. 2 * Copyright 2011 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 GrPathUtils_DEFINED 8 #ifndef GrPathUtils_DEFINED
9 #define GrPathUtils_DEFINED 9 #define GrPathUtils_DEFINED
10 10
11 #include "GrPoint.h"
12 #include "SkRect.h" 11 #include "SkRect.h"
13 #include "SkPath.h" 12 #include "SkPath.h"
14 #include "SkTArray.h" 13 #include "SkTArray.h"
15 14
16 class SkMatrix; 15 class SkMatrix;
17 16
18 /** 17 /**
19 * Utilities for evaluating paths. 18 * Utilities for evaluating paths.
20 */ 19 */
21 namespace GrPathUtils { 20 namespace GrPathUtils {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // K = (klm[0], klm[1], klm[2]) 163 // K = (klm[0], klm[1], klm[2])
165 // L = (klm[3], klm[4], klm[5]) 164 // L = (klm[3], klm[4], klm[5])
166 // M = (klm[6], klm[7], klm[8]) 165 // M = (klm[6], klm[7], klm[8])
167 // 166 //
168 // Notice that the klm lines are calculated in the same space as the input c ontrol points. 167 // Notice that the klm lines are calculated in the same space as the input c ontrol points.
169 // If you transform the points the lines will also need to be transformed. T his can be done 168 // If you transform the points the lines will also need to be transformed. T his can be done
170 // by mapping the lines with the inverse-transpose of the matrix used to map the points. 169 // by mapping the lines with the inverse-transpose of the matrix used to map the points.
171 void getCubicKLM(const SkPoint p[4], SkScalar klm[9]); 170 void getCubicKLM(const SkPoint p[4], SkScalar klm[9]);
172 }; 171 };
173 #endif 172 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrPathUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698