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

Unified Diff: Source/platform/graphics/Path.h

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add clip tests Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/Path.h
diff --git a/Source/platform/graphics/Path.h b/Source/platform/graphics/Path.h
index 431f03d206cb85bf96fcece92237ce572b5482d4..1698ef9993084246c660be045cb7eba08637ed0d 100644
--- a/Source/platform/graphics/Path.h
+++ b/Source/platform/graphics/Path.h
@@ -73,6 +73,7 @@ public:
~Path();
Path(const Path&);
+ Path(const SkPath&);
Path& operator=(const Path&);
bool operator==(const Path&) const;
@@ -143,6 +144,9 @@ public:
void addPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);
void addBeziersForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);
+ bool subtractPath(const Path&);
+ bool intersectPath(const Path&);
+
// Updates the path to the union (inclusive-or) of itself with the given argument.
bool unionPath(const Path& other);

Powered by Google App Engine
This is Rietveld 408576698