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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 674
675 void RenderLayerCompositor::repaintCompositedLayers() 675 void RenderLayerCompositor::repaintCompositedLayers()
676 { 676 {
677 recursiveRepaintLayer(rootRenderLayer()); 677 recursiveRepaintLayer(rootRenderLayer());
678 } 678 }
679 679
680 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer) 680 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer)
681 { 681 {
682 // FIXME: This method does not work correctly with transforms. 682 // FIXME: This method does not work correctly with transforms.
683 if (layer->compositingState() == PaintsIntoOwnBacking) 683 if (layer->compositingState() == PaintsIntoOwnBacking) {
684 layer->repainter().setBackingNeedsRepaint(); 684 layer->compositedLayerMapping()->setContentsNeedDisplay();
685 // This function is called only when it is desired to repaint the entire compositing graphics layer tree.
686 // This includes squashing.
687 layer->compositedLayerMapping()->setSquashingContentsNeedDisplay();
688 }
685 689
686 layer->stackingNode()->updateLayerListsIfNeeded(); 690 layer->stackingNode()->updateLayerListsIfNeeded();
687 691
688 #if ASSERT_ENABLED 692 #if ASSERT_ENABLED
689 LayerListMutationDetector mutationChecker(layer->stackingNode()); 693 LayerListMutationDetector mutationChecker(layer->stackingNode());
690 #endif 694 #endif
691 695
692 unsigned childrenToVisit = NormalFlowChildren; 696 unsigned childrenToVisit = NormalFlowChildren;
693 if (layer->hasCompositingDescendant()) 697 if (layer->hasCompositingDescendant())
694 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren; 698 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren;
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 } else if (graphicsLayer == m_scrollLayer.get()) { 1250 } else if (graphicsLayer == m_scrollLayer.get()) {
1247 name = "LocalFrame Scrolling Layer"; 1251 name = "LocalFrame Scrolling Layer";
1248 } else { 1252 } else {
1249 ASSERT_NOT_REACHED(); 1253 ASSERT_NOT_REACHED();
1250 } 1254 }
1251 1255
1252 return name; 1256 return name;
1253 } 1257 }
1254 1258
1255 } // namespace WebCore 1259 } // namespace WebCore
OLDNEW
« 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