| Index: cc/layer_impl.cc
|
| diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
|
| index fa686134ca12feccaae18c19bffd704e2ea522d9..98092efd50d12bba6979ae41c573b8f0bdbf6948 100644
|
| --- a/cc/layer_impl.cc
|
| +++ b/cc/layer_impl.cc
|
| @@ -69,6 +69,7 @@ void LayerImpl::addChild(scoped_ptr<LayerImpl> child)
|
| child->setParent(this);
|
| DCHECK_EQ(layerTreeHostImpl(), child->layerTreeHostImpl());
|
| m_children.append(child.Pass());
|
| + m_layerTreeHostImpl->setNeedsUpdateDrawProperties();
|
| }
|
|
|
| void LayerImpl::removeFromParent()
|
| @@ -82,6 +83,7 @@ void LayerImpl::removeFromParent()
|
| for (size_t i = 0; i < parent->m_children.size(); ++i) {
|
| if (parent->m_children[i] == this) {
|
| parent->m_children.remove(i);
|
| + m_layerTreeHostImpl->setNeedsUpdateDrawProperties();
|
| return;
|
| }
|
| }
|
| @@ -96,6 +98,7 @@ void LayerImpl::removeAllChildren()
|
| void LayerImpl::clearChildList()
|
| {
|
| m_children.clear();
|
| + m_layerTreeHostImpl->setNeedsUpdateDrawProperties();
|
| }
|
|
|
| void LayerImpl::createRenderSurface()
|
| @@ -369,9 +372,21 @@ bool LayerImpl::layerSurfacePropertyChanged() const
|
| return false;
|
| }
|
|
|
| -void LayerImpl::noteLayerPropertyChangedForSubtree()
|
| +void LayerImpl::noteLayerSurfacePropertyChanged()
|
| +{
|
| + m_layerSurfacePropertyChanged = true;
|
| + m_layerTreeHostImpl->setNeedsUpdateDrawProperties();
|
| +}
|
| +
|
| +void LayerImpl::noteLayerPropertyChanged()
|
| {
|
| m_layerPropertyChanged = true;
|
| + m_layerTreeHostImpl->setNeedsUpdateDrawProperties();
|
| +}
|
| +
|
| +void LayerImpl::noteLayerPropertyChangedForSubtree()
|
| +{
|
| + noteLayerPropertyChanged();
|
| noteLayerPropertyChangedForDescendants();
|
| }
|
|
|
| @@ -426,7 +441,7 @@ void LayerImpl::setBounds(const gfx::Size& bounds)
|
| if (masksToBounds())
|
| noteLayerPropertyChangedForSubtree();
|
| else
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setMaskLayer(scoped_ptr<LayerImpl> maskLayer)
|
| @@ -463,7 +478,7 @@ void LayerImpl::setDrawsContent(bool drawsContent)
|
| return;
|
|
|
| m_drawsContent = drawsContent;
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setAnchorPoint(const gfx::PointF& anchorPoint)
|
| @@ -490,7 +505,7 @@ void LayerImpl::setBackgroundColor(SkColor backgroundColor)
|
| return;
|
|
|
| m_backgroundColor = backgroundColor;
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setFilters(const WebKit::WebFilterOperations& filters)
|
| @@ -509,7 +524,7 @@ void LayerImpl::setBackgroundFilters(const WebKit::WebFilterOperations& backgrou
|
| return;
|
|
|
| m_backgroundFilters = backgroundFilters;
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setFilter(const skia::RefPtr<SkImageFilter>& filter)
|
| @@ -544,7 +559,8 @@ void LayerImpl::setOpacity(float opacity)
|
| {
|
| if (!m_layerAnimationController->setOpacity(opacity))
|
| return;
|
| - m_layerSurfacePropertyChanged = true;
|
| +
|
| + noteLayerSurfacePropertyChanged();
|
| }
|
|
|
| float LayerImpl::opacity() const
|
| @@ -589,7 +605,8 @@ void LayerImpl::setTransform(const gfx::Transform& transform)
|
| {
|
| if (!m_layerAnimationController->setTransform(transform))
|
| return;
|
| - m_layerSurfacePropertyChanged = true;
|
| +
|
| + noteLayerSurfacePropertyChanged();
|
| }
|
|
|
| const gfx::Transform& LayerImpl::transform() const
|
| @@ -608,7 +625,7 @@ void LayerImpl::setContentBounds(const gfx::Size& contentBounds)
|
| return;
|
|
|
| m_contentBounds = contentBounds;
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setContentsScale(float contentsScaleX, float contentsScaleY)
|
| @@ -618,7 +635,7 @@ void LayerImpl::setContentsScale(float contentsScaleX, float contentsScaleY)
|
|
|
| m_contentsScaleX = contentsScaleX;
|
| m_contentsScaleY = contentsScaleY;
|
| - m_layerPropertyChanged = true;
|
| + noteLayerPropertyChanged();
|
| }
|
|
|
| void LayerImpl::setScrollOffset(gfx::Vector2d scrollOffset)
|
|
|