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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.cpp

Issue 22794007: Implement filter primitive subregion on accelerated reference filters (FEColorMatrix a… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix computation of default filter primitive subregion Created 7 years, 3 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: Source/core/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp
index 7ee13dac674541e624ce62533dabb0ddfd701998..3e2fe6ed9ed49f27ac5332b55738173b6c0ca605 100644
--- a/Source/core/platform/graphics/GraphicsLayer.cpp
+++ b/Source/core/platform/graphics/GraphicsLayer.cpp
@@ -1253,6 +1253,8 @@ bool GraphicsLayer::setFilters(const FilterOperations& filters)
return false;
}
SkiaImageFilterBuilder builder;
+ FilterOutsets outsets = filters.outsets();
+ builder.setCropOffset(FloatSize(outsets.left(), outsets.top()));
RefPtr<SkImageFilter> imageFilter = builder.build(filters);
m_layer->layer()->setFilter(imageFilter.get());
} else {
« no previous file with comments | « LayoutTests/css3/filters/effect-reference-subregion-hw.html ('k') | Source/core/platform/graphics/filters/FEColorMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698