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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/ClipList.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/modules/canvas2d/ClipList.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/ClipList.h b/third_party/WebKit/Source/modules/canvas2d/ClipList.h
index 591eb5fb05e0339f1d0a62f7e7c2773b7af52373..a15510beb55322fd20f6f19a8d416bf9c20886d0 100644
--- a/third_party/WebKit/Source/modules/canvas2d/ClipList.h
+++ b/third_party/WebKit/Source/modules/canvas2d/ClipList.h
@@ -25,7 +25,7 @@ public:
void clipPath(const SkPath&, AntiAliasingMode, const SkMatrix&);
void playback(SkCanvas*) const;
- SkPath intersectPathWithClip(const SkPath&) const;
+ const SkPath& getCurrentClipPath() const;
private:
@@ -41,6 +41,7 @@ private:
static const size_t cInlineClipOpCapacity = 4;
WTF::Vector<ClipOp, cInlineClipOpCapacity> m_clipList;
+ SkPath m_currentClipPath;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698