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

Unified Diff: cc/trees/layer_tree_host_pixeltest_filters.cc

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_filters.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_filters.cc b/cc/trees/layer_tree_host_pixeltest_filters.cc
index 7068b4b1047379c896d5c504f776e57dcc225150..a866a14283009f54c681a13af9d57e65c07c5524 100644
--- a/cc/trees/layer_tree_host_pixeltest_filters.cc
+++ b/cc/trees/layer_tree_host_pixeltest_filters.cc
@@ -175,11 +175,13 @@ TEST_F(LayerTreeHostFiltersPixelTest, ImageFilterClipped) {
colorFilter.get(),
NULL,
&cropRect));
+ FilterOperations filters;
+ filters.Append(FilterOperation::CreateReferenceFilter(filter));
// Make the foreground layer's render surface be clipped by the background
// layer.
background->SetMasksToBounds(true);
- foreground->SetFilter(filter);
+ foreground->SetFilters(filters);
// Then we translate the foreground up by 100 pixels in Y, so the cropped
// region is moved to to the top. This ensures that the crop rect is being
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698