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

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

Issue 1862733002: Remove all use of crop edges from SkImageFilter::CropRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to ToT Created 4 years, 8 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.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp
index 3f6e792e1b86dd178ff4a84bc5530984df8cc95d..fe74815e557ca3a4b9b4fd2bdc8e4b76474c6628 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp
@@ -321,6 +321,9 @@ SkImageFilter* CanvasRenderingContext2DState::getFilter(Element* styleResolution
SkiaImageFilterBuilder imageFilterBuilder;
FilterEffect* lastEffect = filterEffectBuilder->lastEffect();
+ if (lastEffect) {
+ lastEffect->determineFilterPrimitiveSubregion();
+ }
m_resolvedFilter = imageFilterBuilder.build(lastEffect, ColorSpaceDeviceRGB);
if (m_resolvedFilter) {
updateFilterReferences(toHTMLCanvasElement(styleResolutionHost), context, filterStyle->filter());
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698