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

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

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: Sync Created 3 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 f3216522dad46021c02fd34385d2fd76027e95ca..cd6e445ff7c9cb3e2b68c8d8a1d9c010d27544bd 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
@@ -95,6 +95,8 @@ class CanvasRenderingContext2DState final
sk_sp<SkImageFilter> getFilter(Element*,
IntSize canvasSize,
CanvasRenderingContext2D*) const;
+ sk_sp<SkImageFilter> getFilterForOffscreenCanvas(IntSize canvasSize) const;
+ bool hasFilterForOffscreenCanvas(IntSize canvasSize) const;
bool hasFilter(Element*, IntSize canvasSize, CanvasRenderingContext2D*) const;
void clearResolvedFilter() const;

Powered by Google App Engine
This is Rietveld 408576698