| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class RenderLayerStackingNode; | 42 class RenderLayerStackingNode; |
| 43 class RenderPart; | 43 class RenderPart; |
| 44 class RenderVideo; | 44 class RenderVideo; |
| 45 class ScrollingCoordinator; | 45 class ScrollingCoordinator; |
| 46 class StickyPositionViewportConstraints; | 46 class StickyPositionViewportConstraints; |
| 47 | 47 |
| 48 enum CompositingUpdateType { | 48 enum CompositingUpdateType { |
| 49 CompositingUpdateNone, | 49 CompositingUpdateNone, |
| 50 CompositingUpdateOnCompositedScroll, | 50 CompositingUpdateOnCompositedScroll, |
| 51 CompositingUpdateAfterCompositingInputChange, | 51 CompositingUpdateAfterCompositingInputChange, |
| 52 CompositingUpdateAfterLayout, |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 enum CompositingStateTransitionType { | 55 enum CompositingStateTransitionType { |
| 55 NoCompositingStateChange, | 56 NoCompositingStateChange, |
| 56 AllocateOwnCompositedLayerMapping, | 57 AllocateOwnCompositedLayerMapping, |
| 57 RemoveOwnCompositedLayerMapping, | 58 RemoveOwnCompositedLayerMapping, |
| 58 PutInSquashingLayer, | 59 PutInSquashingLayer, |
| 59 RemoveFromSquashingLayer | 60 RemoveFromSquashingLayer |
| 60 }; | 61 }; |
| 61 | 62 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Copy the accelerated compositing related flags from Settings | 95 // Copy the accelerated compositing related flags from Settings |
| 95 void updateAcceleratedCompositingSettings(); | 96 void updateAcceleratedCompositingSettings(); |
| 96 | 97 |
| 97 // Called when the layer hierarchy needs to be updated (compositing layers h
ave been | 98 // Called when the layer hierarchy needs to be updated (compositing layers h
ave been |
| 98 // created, destroyed or re-parented). | 99 // created, destroyed or re-parented). |
| 99 void setCompositingLayersNeedRebuild(); | 100 void setCompositingLayersNeedRebuild(); |
| 100 | 101 |
| 101 // Used to indicate that a compositing update will be needed for the next fr
ame that gets drawn. | 102 // Used to indicate that a compositing update will be needed for the next fr
ame that gets drawn. |
| 102 void setNeedsCompositingUpdate(CompositingUpdateType); | 103 void setNeedsCompositingUpdate(CompositingUpdateType); |
| 103 | 104 |
| 104 void didLayout(); | |
| 105 | |
| 106 enum UpdateLayerCompositingStateOptions { | 105 enum UpdateLayerCompositingStateOptions { |
| 107 Normal, | 106 Normal, |
| 108 UseChickenEggHacks, // Use this to trigger temporary chicken-egg hacks.
See crbug.com/339892. | 107 UseChickenEggHacks, // Use this to trigger temporary chicken-egg hacks.
See crbug.com/339892. |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 // Update the compositing dirty bits, based on the compositing-impacting pro
perties of the layer. | 110 // Update the compositing dirty bits, based on the compositing-impacting pro
perties of the layer. |
| 112 void updateLayerCompositingState(RenderLayer*, UpdateLayerCompositingStateOp
tions = Normal); | 111 void updateLayerCompositingState(RenderLayer*, UpdateLayerCompositingStateOp
tions = Normal); |
| 113 | 112 |
| 114 // Returns whether this layer is clipped by another layer that is not an anc
estor of the given layer in the stacking context hierarchy. | 113 // Returns whether this layer is clipped by another layer that is not an anc
estor of the given layer in the stacking context hierarchy. |
| 115 bool clippedByNonAncestorInStackingTree(const RenderLayer*) const; | 114 bool clippedByNonAncestorInStackingTree(const RenderLayer*) const; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 287 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
| 289 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 288 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 290 #if USE(RUBBER_BANDING) | 289 #if USE(RUBBER_BANDING) |
| 291 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 290 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 292 #endif | 291 #endif |
| 293 }; | 292 }; |
| 294 | 293 |
| 295 } // namespace WebCore | 294 } // namespace WebCore |
| 296 | 295 |
| 297 #endif // RenderLayerCompositor_h | 296 #endif // RenderLayerCompositor_h |
| OLD | NEW |