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

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

Issue 337793004: Repaint squashing content in cases where the entire frame is repainting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged. Created 6 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 | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 6ad394b5cb9d92f9f367977cd813cd205328e07f..ccbe29d356ccc0664a9420c079217f4c427b6745 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -680,8 +680,12 @@ void RenderLayerCompositor::repaintCompositedLayers()
void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer)
{
// FIXME: This method does not work correctly with transforms.
- if (layer->compositingState() == PaintsIntoOwnBacking)
- layer->repainter().setBackingNeedsRepaint();
+ if (layer->compositingState() == PaintsIntoOwnBacking) {
+ layer->compositedLayerMapping()->setContentsNeedDisplay();
+ // This function is called only when it is desired to repaint the entire compositing graphics layer tree.
+ // This includes squashing.
+ layer->compositedLayerMapping()->setSquashingContentsNeedDisplay();
+ }
layer->stackingNode()->updateLayerListsIfNeeded();
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698