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

Side by Side Diff: Source/platform/graphics/Path.h

Issue 1185383002: [SVG] Re-enable experimental PathOpsSVGClipping support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: expectations Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | Source/platform/graphics/Path.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 (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
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
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
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | Source/platform/graphics/Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698