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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1583103007: Use an up-to-date canvas size when building canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 326700a278310250f3a0fd2c6df48798c3a397e1..3feeef79e4bd46c5a9bc03a67bdb20c56e935c97 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
@@ -86,6 +86,7 @@ public:
const String& unparsedFilter() const { return m_unparsedFilter; }
SkImageFilter* getFilter(Element*, const Font&) const;
bool hasFilter() const { return m_filterValue; }
+ bool needsToBuildFilter() const { return m_filterValue && !m_resolvedFilter; }
void setStrokeStyle(CanvasStyle*);
CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); }

Powered by Google App Engine
This is Rietveld 408576698