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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.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/CanvasRenderingContext2DState.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
index 12930f6a74305721005abf563d7b9af1fbf950ac..01cb478eb7ecf16bfc26c9d00d955b9f12ba0ee5 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
@@ -75,7 +75,7 @@ public:
bool hasClip() const { return m_hasClip; }
bool hasComplexClip() const { return m_hasComplexClip; }
void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); }
- SkPath intersectPathWithClip(const SkPath& path) const { return m_clipList.intersectPathWithClip(path); }
+ const SkPath& getCurrentClipPath() const { return m_clipList.getCurrentClipPath(); }
void setFont(const Font&, CSSFontSelector*);
const Font& font() const;

Powered by Google App Engine
This is Rietveld 408576698