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

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

Issue 1690173003: Canvas2d: Make the intersection computation O(1) instead of O(n) in ClipList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/platform/graphics/Path.h
diff --git a/third_party/WebKit/Source/platform/graphics/Path.h b/third_party/WebKit/Source/platform/graphics/Path.h
index e1c24911026d2d22f32b1e372a2b79f19a490408..681fa9b659c469088ce92ca0406bd091886c66e4 100644
--- a/third_party/WebKit/Source/platform/graphics/Path.h
+++ b/third_party/WebKit/Source/platform/graphics/Path.h
@@ -70,6 +70,7 @@ public:
~Path();
Path(const Path&);
+ Path(const SkPath&);
Path& operator=(const Path&);
Path& operator=(const SkPath&);
bool operator==(const Path&) const;
@@ -150,6 +151,7 @@ public:
// Updates the path to the union (inclusive-or) of itself with the given argument.
bool unionPath(const Path& other);
+ bool intersectPath(const Path& other);
private:
void addEllipse(const FloatPoint&, float radiusX, float radiusY, float startAngle, float endAngle, bool anticlockwise);
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/ClipList.cpp ('k') | third_party/WebKit/Source/platform/graphics/Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698