summaryrefslogtreecommitdiffstats
path: root/cc/layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layer_impl.cc')
-rw-r--r--cc/layer_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index 1297409..96f197b 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -476,10 +476,10 @@ void LayerImpl::setBackgroundColor(SkColor backgroundColor)
void LayerImpl::setFilters(const WebKit::WebFilterOperations& filters)
{
- DCHECK(!m_filter);
if (m_filters == filters)
return;
+ DCHECK(!m_filter);
m_filters = filters;
noteLayerPropertyChangedForSubtree();
}
@@ -495,10 +495,10 @@ void LayerImpl::setBackgroundFilters(const WebKit::WebFilterOperations& backgrou
void LayerImpl::setFilter(SkImageFilter* filter)
{
- DCHECK(m_filters.isEmpty());
if (m_filter == filter)
return;
+ DCHECK(m_filters.isEmpty());
SkRefCnt_SafeAssign(m_filter, filter);
noteLayerPropertyChangedForSubtree();
}