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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 208643002: CompositedLayerMapping should use dirty bits for bounds update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index 44b0f6fb922301d8b3acf8bb2b6c61acc5621f25..298ac5238c1482fedddbf300f43f40baad3f551c 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -350,8 +350,11 @@ bool CompositedLayerMapping::shouldClipCompositedBounds() const
return false;
}
-void CompositedLayerMapping::updateCompositedBounds()
+void CompositedLayerMapping::updateCompositedBounds(GraphicsLayerUpdater::UpdateType updateType)
{
+ if (!m_needToUpdateGeometry && updateType != GraphicsLayerUpdater::ForceUpdate)
+ return;
+
// We need to know if we draw content in order to update our bounds (this has an effect
// on whether or not descendands will paint into our backing). Update this value now.
updateDrawsContent();
@@ -425,7 +428,7 @@ void CompositedLayerMapping::updateAfterLayout(UpdateAfterLayoutFlags flags)
//
// The solution is to update compositing children of this layer here,
// via updateCompositingChildrenGeometry().
- updateCompositedBounds();
+ updateCompositedBounds(GraphicsLayerUpdater::ForceUpdate);
layerCompositor->updateCompositingDescendantGeometry(m_owningLayer.stackingNode(), &m_owningLayer, flags & CompositingChildrenOnly);
if (flags & IsUpdateRoot) {
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | Source/core/rendering/compositing/GraphicsLayerUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698