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

Unified Diff: cc/layers/layer.cc

Issue 16968002: Move implementation of WebFilterOperations into cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index e1354b9fbe9636da35ade3ba5585b391b37dfccf..22a3d6f2167cc768465fc5bd8cc3a9c920f757ff 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -109,7 +109,7 @@ void Layer::SetLayerTreeHost(LayerTreeHost* host) {
if (host && layer_animation_controller_->has_any_animation())
host->SetNeedsCommit();
if (host &&
- (!filters_.isEmpty() || !background_filters_.isEmpty() || filter_))
+ (!filters_.IsEmpty() || !background_filters_.IsEmpty() || filter_))
layer_tree_host_->set_needs_filter_context();
}
@@ -419,14 +419,14 @@ void Layer::SetReplicaLayer(Layer* layer) {
SetNeedsFullTreeSync();
}
-void Layer::SetFilters(const WebKit::WebFilterOperations& filters) {
+void Layer::SetFilters(const FilterOperations& filters) {
DCHECK(IsPropertyChangeAllowed());
if (filters_ == filters)
return;
DCHECK(!filter_);
filters_ = filters;
SetNeedsCommit();
- if (!filters.isEmpty() && layer_tree_host_)
+ if (!filters.IsEmpty() && layer_tree_host_)
layer_tree_host_->set_needs_filter_context();
}
@@ -434,20 +434,20 @@ void Layer::SetFilter(const skia::RefPtr<SkImageFilter>& filter) {
DCHECK(IsPropertyChangeAllowed());
if (filter_.get() == filter.get())
return;
- DCHECK(filters_.isEmpty());
+ DCHECK(filters_.IsEmpty());
filter_ = filter;
SetNeedsCommit();
if (filter && layer_tree_host_)
layer_tree_host_->set_needs_filter_context();
}
-void Layer::SetBackgroundFilters(const WebKit::WebFilterOperations& filters) {
+void Layer::SetBackgroundFilters(const FilterOperations& filters) {
DCHECK(IsPropertyChangeAllowed());
if (background_filters_ == filters)
return;
background_filters_ = filters;
SetNeedsCommit();
- if (!filters.isEmpty() && layer_tree_host_)
+ if (!filters.IsEmpty() && layer_tree_host_)
layer_tree_host_->set_needs_filter_context();
}
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698