OLD | NEW |
---|---|
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 layer->setViewportConstrainedNotCompositedReason(viewportConstrainedNotC ompositedReason); | 473 layer->setViewportConstrainedNotCompositedReason(viewportConstrainedNotC ompositedReason); |
474 return true; | 474 return true; |
475 } | 475 } |
476 return false; | 476 return false; |
477 } | 477 } |
478 | 478 |
479 // These are temporary hacks to work around chicken-egg issues while we continue to refactor the compositing code. | 479 // These are temporary hacks to work around chicken-egg issues while we continue to refactor the compositing code. |
480 // See crbug.com/383191 for a list of tests that fail if this method is removed. | 480 // See crbug.com/383191 for a list of tests that fail if this method is removed. |
481 void RenderLayerCompositor::applyUpdateLayerCompositingStateChickenEggHacks(Rend erLayer* layer, CompositingStateTransitionType compositedLayerUpdate) | 481 void RenderLayerCompositor::applyUpdateLayerCompositingStateChickenEggHacks(Rend erLayer* layer, CompositingStateTransitionType compositedLayerUpdate) |
482 { | 482 { |
483 if (compositedLayerUpdate != NoCompositingStateChange) | 483 if (compositedLayerUpdate != NoCompositingStateChange) { |
484 allocateOrClearCompositedLayerMapping(layer, compositedLayerUpdate); | 484 bool compositedLayerMappingChanged = allocateOrClearCompositedLayerMappi ng(layer, compositedLayerUpdate); |
485 if (compositedLayerMappingChanged) | |
486 repaintOnCompositingChange(layer); | |
chrishtr
2014/06/12 21:09:54
Also recompute repaint rects via computeRepaintRec
ajuma
2014/06/12 21:33:26
Done.
| |
487 } | |
485 } | 488 } |
486 | 489 |
487 void RenderLayerCompositor::updateLayerCompositingState(RenderLayer* layer, Upda teLayerCompositingStateOptions options) | 490 void RenderLayerCompositor::updateLayerCompositingState(RenderLayer* layer, Upda teLayerCompositingStateOptions options) |
488 { | 491 { |
489 updateDirectCompositingReasons(layer); | 492 updateDirectCompositingReasons(layer); |
490 CompositingStateTransitionType compositedLayerUpdate = CompositingLayerAssig ner(this).computeCompositedLayerUpdate(layer); | 493 CompositingStateTransitionType compositedLayerUpdate = CompositingLayerAssig ner(this).computeCompositedLayerUpdate(layer); |
491 | 494 |
492 if (compositedLayerUpdate != NoCompositingStateChange) | 495 if (compositedLayerUpdate != NoCompositingStateChange) |
493 setNeedsCompositingUpdate(CompositingUpdateRebuildTree); | 496 setNeedsCompositingUpdate(CompositingUpdateRebuildTree); |
494 | 497 |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1239 } else if (graphicsLayer == m_scrollLayer.get()) { | 1242 } else if (graphicsLayer == m_scrollLayer.get()) { |
1240 name = "LocalFrame Scrolling Layer"; | 1243 name = "LocalFrame Scrolling Layer"; |
1241 } else { | 1244 } else { |
1242 ASSERT_NOT_REACHED(); | 1245 ASSERT_NOT_REACHED(); |
1243 } | 1246 } |
1244 | 1247 |
1245 return name; | 1248 return name; |
1246 } | 1249 } |
1247 | 1250 |
1248 } // namespace WebCore | 1251 } // namespace WebCore |
OLD | NEW |