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

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: exclude clipping region part 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 f6bdd439bb587aa3c7d951f4a6a459f35431b98e..0dcda81e533f65de597c8606afd88b6e5793aeb3 100644
--- a/Source/platform/graphics/Path.h
+++ b/Source/platform/graphics/Path.h
@@ -143,6 +143,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