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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Whether layer's backing needs a graphics layer to do clipping by an ances
tor (non-stacking-context parent with overflow). | 105 // Whether layer's backing needs a graphics layer to do clipping by an ances
tor (non-stacking-context parent with overflow). |
106 bool clippedByAncestor(RenderLayer*) const; | 106 bool clippedByAncestor(RenderLayer*) const; |
107 // Whether layer's backing needs a graphics layer to clip z-order children o
f the given layer. | 107 // Whether layer's backing needs a graphics layer to clip z-order children o
f the given layer. |
108 bool clipsCompositingDescendants(const RenderLayer*) const; | 108 bool clipsCompositingDescendants(const RenderLayer*) const; |
109 | 109 |
110 // Whether the given layer needs an extra 'contents' layer. | 110 // Whether the given layer needs an extra 'contents' layer. |
111 bool needsContentsCompositingLayer(const RenderLayer*) const; | 111 bool needsContentsCompositingLayer(const RenderLayer*) const; |
112 | 112 |
113 bool supportsFixedRootBackgroundCompositing() const; | 113 bool supportsFixedRootBackgroundCompositing() const; |
114 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 114 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
115 GraphicsLayer* fixedRootBackgroundLayer() const; | |
116 | 115 |
117 // Return the bounding box required for compositing layer and its childern,
relative to ancestorLayer. | 116 // Return the bounding box required for compositing layer and its childern,
relative to ancestorLayer. |
118 // If layerBoundingBox is not 0, on return it contains the bounding box of t
his layer only. | 117 // If layerBoundingBox is not 0, on return it contains the bounding box of t
his layer only. |
119 IntRect calculateCompositedBounds(const RenderLayer*, const RenderLayer* anc
estorLayer) const; | 118 IntRect calculateCompositedBounds(const RenderLayer*, const RenderLayer* anc
estorLayer) const; |
120 | 119 |
121 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. | 120 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. |
122 void repaintOnCompositingChange(RenderLayer*); | 121 void repaintOnCompositingChange(RenderLayer*); |
123 | 122 |
124 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | 123 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); |
125 | 124 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. | 363 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. |
365 double m_obligatoryBackingStoreBytes; | 364 double m_obligatoryBackingStoreBytes; |
366 double m_secondaryBackingStoreBytes; | 365 double m_secondaryBackingStoreBytes; |
367 #endif | 366 #endif |
368 }; | 367 }; |
369 | 368 |
370 | 369 |
371 } // namespace WebCore | 370 } // namespace WebCore |
372 | 371 |
373 #endif // RenderLayerCompositor_h | 372 #endif // RenderLayerCompositor_h |
OLD | NEW |