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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix non-oilpan build Created 4 years, 9 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/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index ff96cb51b82b8ed1c31afd54261f3311c7d0e1ea..35990bd16f1fe9e2b825a317aa5f7e8181bae3f0 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -152,6 +152,12 @@ void CanvasRenderingContext2D::dispose()
clearFilterReferences();
}
+void CanvasRenderingContext2D::updateFilterReferences(const FilterOperations& filters)
+{
+ clearFilterReferences();
+ addFilterReferences(filters, canvas()->document());
+}
+
void CanvasRenderingContext2D::validateStateStack()
{
#if ENABLE(ASSERT)
@@ -372,12 +378,12 @@ void CanvasRenderingContext2D::didDraw(const SkIRect& dirtyRect)
bool CanvasRenderingContext2D::stateHasFilter()
{
- return state().hasFilter(canvas(), accessFont(), canvas()->size(), this);
+ return state().hasFilter(canvas(), &accessFont(), canvas()->size(), this);
}
SkImageFilter* CanvasRenderingContext2D::stateGetFilter()
{
- return state().getFilter(canvas(), accessFont(), canvas()->size(), this);
+ return state().getFilter(canvas(), &accessFont(), canvas()->size(), this);
}
SkCanvas* CanvasRenderingContext2D::drawingCanvas() const

Powered by Google App Engine
This is Rietveld 408576698