Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 257 | 257 |
| 258 // Make or destroy the CompositedLayerMapping for this layer; returns true i f the compositedLayerMapping changed. | 258 // Make or destroy the CompositedLayerMapping for this layer; returns true i f the compositedLayerMapping changed. |
| 259 bool allocateOrClearCompositedLayerMapping(RenderLayer*); | 259 bool allocateOrClearCompositedLayerMapping(RenderLayer*); |
| 260 bool updateSquashingAssignment(RenderLayer*, SquashingState&); | 260 bool updateSquashingAssignment(RenderLayer*, SquashingState&); |
| 261 | 261 |
| 262 void clearMappingForRenderLayerIncludingDescendants(RenderLayer*); | 262 void clearMappingForRenderLayerIncludingDescendants(RenderLayer*); |
| 263 | 263 |
| 264 // Repaint the given rect (which is layer's coords), and regions of child la yers that intersect that rect. | 264 // Repaint the given rect (which is layer's coords), and regions of child la yers that intersect that rect. |
| 265 void recursiveRepaintLayer(RenderLayer*, const IntRect* = 0); | 265 void recursiveRepaintLayer(RenderLayer*, const IntRect* = 0); |
| 266 | 266 |
| 267 void addToOverlapMap(OverlapMap&, RenderLayer*, IntRect& layerBounds, bool& boundsComputed); | 267 void addToOverlapMap(OverlapMap&, RenderLayer*, IntRect& layerBounds); |
| 268 void addToOverlapMapRecursive(OverlapMap&, RenderLayer*, RenderLayer* ancest orLayer = 0); | |
| 269 | 268 |
| 270 // Forces an update for all frames of frame tree recursively. Used only when the mainFrame compositor is ready to | 269 // Forces an update for all frames of frame tree recursively. Used only when the mainFrame compositor is ready to |
| 271 // finish all deferred work. | 270 // finish all deferred work. |
| 272 static void finishCompositingUpdateForFrameTree(LocalFrame*); | 271 static void finishCompositingUpdateForFrameTree(LocalFrame*); |
| 273 | 272 |
| 274 // Returns true if any layer's compositing changed | 273 // Returns an absolute bounding box for the layer's decendants. |
|
enne (OOO)
2014/02/28 00:50:13
This is why we can't have nice comments!!
| |
| 275 void computeCompositingRequirements(RenderLayer* ancestorLayer, RenderLayer* , OverlapMap*, struct CompositingRecursionData&, bool& descendantHas3DTransform, Vector<RenderLayer*>& unclippedDescendants); | 274 IntRect computeCompositingRequirements(RenderLayer* ancestorLayer, RenderLay er*, OverlapMap*, struct CompositingRecursionData&, bool& descendantHas3DTransfo rm, Vector<RenderLayer*>& unclippedDescendants); |
| 276 | 275 |
| 277 // Defines which RenderLayers will paint into which composited backings, by allocating and destroying CompositedLayerMappings as needed. | 276 // Defines which RenderLayers will paint into which composited backings, by allocating and destroying CompositedLayerMappings as needed. |
| 278 void assignLayersToBackings(RenderLayer*, bool& layersChanged); | 277 void assignLayersToBackings(RenderLayer*, bool& layersChanged); |
| 279 void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, bool& lay ersChanged); | 278 void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, bool& lay ersChanged); |
| 280 | 279 |
| 281 // Allocates, sets up hierarchy, and sets appropriate properties for the Gra phicsLayers that correspond to a given | 280 // Allocates, sets up hierarchy, and sets appropriate properties for the Gra phicsLayers that correspond to a given |
| 282 // composited RenderLayer. Does nothing if the given RenderLayer does not ha ve a CompositedLayerMapping. | 281 // composited RenderLayer. Does nothing if the given RenderLayer does not ha ve a CompositedLayerMapping. |
| 283 void updateGraphicsLayersMappedToRenderLayer(RenderLayer*); | 282 void updateGraphicsLayersMappedToRenderLayer(RenderLayer*); |
| 284 | 283 |
| 285 // Recurses down the tree, parenting descendant compositing layers and colle cting an array of child layers for the current compositing layer. | 284 // Recurses down the tree, parenting descendant compositing layers and colle cting an array of child layers for the current compositing layer. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 373 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 375 #if USE(RUBBER_BANDING) | 374 #if USE(RUBBER_BANDING) |
| 376 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 375 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 377 #endif | 376 #endif |
| 378 }; | 377 }; |
| 379 | 378 |
| 380 | 379 |
| 381 } // namespace WebCore | 380 } // namespace WebCore |
| 382 | 381 |
| 383 #endif // RenderLayerCompositor_h | 382 #endif // RenderLayerCompositor_h |
| OLD | NEW |