| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * 2006 Rob Buis <buis@kde.org> | 3 * 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
| 5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class StrokeData; | 49 class StrokeData; |
| 50 | 50 |
| 51 enum PathElementType { | 51 enum PathElementType { |
| 52 PathElementMoveToPoint, // The points member will contain 1 value. | 52 PathElementMoveToPoint, // The points member will contain 1 value. |
| 53 PathElementAddLineToPoint, // The points member will contain 1 value. | 53 PathElementAddLineToPoint, // The points member will contain 1 value. |
| 54 PathElementAddQuadCurveToPoint, // The points member will contain 2 values. | 54 PathElementAddQuadCurveToPoint, // The points member will contain 2 values. |
| 55 PathElementAddCurveToPoint, // The points member will contain 3 values. | 55 PathElementAddCurveToPoint, // The points member will contain 3 values. |
| 56 PathElementCloseSubpath // The points member will contain no values. | 56 PathElementCloseSubpath // The points member will contain no values. |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 // The points in the sturcture are the same as those that would be used with the | 59 // The points in the structure are the same as those that would be used with the |
| 60 // add... method. For example, a line returns the endpoint, while a cubic return
s | 60 // add... method. For example, a line returns the endpoint, while a cubic return
s |
| 61 // two tangent points and the endpoint. | 61 // two tangent points and the endpoint. |
| 62 struct PathElement { | 62 struct PathElement { |
| 63 PathElementType type; | 63 PathElementType type; |
| 64 FloatPoint* points; | 64 FloatPoint* points; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 typedef void (*PathApplierFunction)(void* info, const PathElement*); | 67 typedef void (*PathApplierFunction)(void* info, const PathElement*); |
| 68 | 68 |
| 69 class PLATFORM_EXPORT Path { | 69 class PLATFORM_EXPORT Path { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 SkPath m_path; | 155 SkPath m_path; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #if ENABLE(ASSERT) | 158 #if ENABLE(ASSERT) |
| 159 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); | 159 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); |
| 160 #endif | 160 #endif |
| 161 | 161 |
| 162 } | 162 } |
| 163 | 163 |
| 164 #endif | 164 #endif |
| OLD | NEW |