| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 typedef void (*PathApplierFunction)(void* info, const PathElement*); | 66 typedef void (*PathApplierFunction)(void* info, const PathElement*); |
| 67 | 67 |
| 68 class PLATFORM_EXPORT Path { | 68 class PLATFORM_EXPORT Path { |
| 69 WTF_MAKE_FAST_ALLOCATED(Path); | 69 WTF_MAKE_FAST_ALLOCATED(Path); |
| 70 public: | 70 public: |
| 71 Path(); | 71 Path(); |
| 72 ~Path(); | 72 ~Path(); |
| 73 | 73 |
| 74 Path(const Path&); | 74 Path(const Path&); |
| 75 Path& operator=(const Path&); | 75 Path& operator=(const Path&); |
| 76 Path& operator=(const SkPath&); |
| 76 bool operator==(const Path&) const; | 77 bool operator==(const Path&) const; |
| 77 | 78 |
| 78 bool contains(const FloatPoint&, WindRule = RULE_NONZERO) const; | 79 bool contains(const FloatPoint&, WindRule = RULE_NONZERO) const; |
| 79 bool strokeContains(const FloatPoint&, const StrokeData&) const; | 80 bool strokeContains(const FloatPoint&, const StrokeData&) const; |
| 80 FloatRect boundingRect() const; | 81 FloatRect boundingRect() const; |
| 81 FloatRect strokeBoundingRect(const StrokeData&) const; | 82 FloatRect strokeBoundingRect(const StrokeData&) const; |
| 82 | 83 |
| 83 float length() const; | 84 float length() const; |
| 84 FloatPoint pointAtLength(float length, bool& ok) const; | 85 FloatPoint pointAtLength(float length, bool& ok) const; |
| 85 bool pointAndNormalAtLength(float length, FloatPoint&, float&) const; | 86 bool pointAndNormalAtLength(float length, FloatPoint&, float&) const; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 SkPath m_path; | 157 SkPath m_path; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 #if ENABLE(ASSERT) | 160 #if ENABLE(ASSERT) |
| 160 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); | 161 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); |
| 161 #endif | 162 #endif |
| 162 | 163 |
| 163 } // namespace blink | 164 } // namespace blink |
| 164 | 165 |
| 165 #endif | 166 #endif |
| OLD | NEW |