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

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

Issue 910213002: Use conics for round joins and caps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove dup cubic code Created 5 years, 10 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 | « no previous file | src/core/SkGeometry.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
2 /* 1 /*
3 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9
10 #ifndef SkGeometry_DEFINED 8 #ifndef SkGeometry_DEFINED
11 #define SkGeometry_DEFINED 9 #define SkGeometry_DEFINED
12 10
13 #include "SkMatrix.h" 11 #include "SkMatrix.h"
14 12
15 /** An XRay is a half-line that runs from the specific point/origin to 13 /** An XRay is a half-line that runs from the specific point/origin to
16 +infinity in the X direction. e.g. XRay(3,5) is the half-line 14 +infinity in the X direction. e.g. XRay(3,5) is the half-line
17 (3,5)....(infinity, 5) 15 (3,5)....(infinity, 5)
18 */ 16 */
19 typedef SkPoint SkXRay; 17 typedef SkPoint SkXRay;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 private: 345 private:
348 enum { 346 enum {
349 kQuadCount = 8, // should handle most conics 347 kQuadCount = 8, // should handle most conics
350 kPointCount = 1 + 2 * kQuadCount, 348 kPointCount = 1 + 2 * kQuadCount,
351 }; 349 };
352 SkAutoSTMalloc<kPointCount, SkPoint> fStorage; 350 SkAutoSTMalloc<kPointCount, SkPoint> fStorage;
353 int fQuadCount; // #quads for current usage 351 int fQuadCount; // #quads for current usage
354 }; 352 };
355 353
356 #endif 354 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkGeometry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698