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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void addEllipse(const FloatRect&); 133 void addEllipse(const FloatRect&);
134 134
135 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii); 135 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii);
136 void addRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& b ottomRightRadius); 136 void addRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& b ottomRightRadius);
137 void addRoundedRect(const FloatRoundedRect&); 137 void addRoundedRect(const FloatRoundedRect&);
138 138
139 void addPath(const Path&, const AffineTransform&); 139 void addPath(const Path&, const AffineTransform&);
140 140
141 void translate(const FloatSize&); 141 void translate(const FloatSize&);
142 142
143 const SkPath& skPath() const { return m_path; } 143 const SkPath& getSkPath() const { return m_path; }
144 144
145 void apply(void* info, PathApplierFunction) const; 145 void apply(void* info, PathApplierFunction) const;
146 void transform(const AffineTransform&); 146 void transform(const AffineTransform&);
147 147
148 void addPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const Float Size& bottomRightRadius); 148 void addPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const Float Size& bottomRightRadius);
149 149
150 bool subtractPath(const Path&); 150 bool subtractPath(const Path&);
151 151
152 // Updates the path to the union (inclusive-or) of itself with the given arg ument. 152 // Updates the path to the union (inclusive-or) of itself with the given arg ument.
153 bool unionPath(const Path& other); 153 bool unionPath(const Path& other);
154 bool intersectPath(const Path& other); 154 bool intersectPath(const Path& other);
155 155
156 private: 156 private:
157 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float start Angle, float endAngle, bool anticlockwise); 157 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float start Angle, float endAngle, bool anticlockwise);
158 SkPath strokePath(const StrokeData&) const; 158 SkPath strokePath(const StrokeData&) const;
159 159
160 SkPath m_path; 160 SkPath m_path;
161 }; 161 };
162 162
163 #if ENABLE(ASSERT) 163 #if ENABLE(ASSERT)
164 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); 164 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle);
165 #endif 165 #endif
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif 169 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | third_party/WebKit/Source/platform/graphics/Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698