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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: New version without StyleResolver Created 4 years, 2 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/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
index 481fe91633b005d6836b8d70113b836d8c08c2d9..63fb9bfee82e3093f17389b7000cec0c980a3ec8 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -44,8 +44,8 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
ContextType getContextType() const override { return Context2d; }
bool is2d() const override { return true; }
void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final;
- void setIsHidden(bool) final { ASSERT_NOT_REACHED(); }
- void stop() final { ASSERT_NOT_REACHED(); }
+ void setIsHidden(bool) final { NOTREACHED(); }
+ void stop() final { NOTREACHED(); }
void setCanvasGetContextResult(RenderingContext&) final {}
void clearRect(double x, double y, double width, double height) override {
BaseRenderingContext2D::clearRect(x, y, width, height);
@@ -75,6 +75,7 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
bool stateHasFilter() final;
SkImageFilter* stateGetFilter() final;
void snapshotStateForFilter() final {}
+ void setFilter(const String&);
void validateStateStack() const final;

Powered by Google App Engine
This is Rietveld 408576698