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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 115 GraphicsLayer* fixedRootBackgroundLayer() const; |
116 | 116 |
117 // Return the bounding box required for compositing layer and its childern,
relative to ancestorLayer. | 117 // 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. | 118 // 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; | 119 LayoutRect calculateCompositedBounds(const RenderLayer*, const RenderLayer*
ancestorLayer) const; |
120 | 120 |
121 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. | 121 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. |
122 void repaintOnCompositingChange(RenderLayer*); | 122 void repaintOnCompositingChange(RenderLayer*); |
123 | 123 |
124 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | 124 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); |
125 | 125 |
126 // Notify us that a layer has been added or removed | 126 // Notify us that a layer has been added or removed |
127 void layerWasAdded(RenderLayer* parent, RenderLayer* child); | 127 void layerWasAdded(RenderLayer* parent, RenderLayer* child); |
128 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); | 128 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); |
129 | 129 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. | 360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. |
361 double m_obligatoryBackingStoreBytes; | 361 double m_obligatoryBackingStoreBytes; |
362 double m_secondaryBackingStoreBytes; | 362 double m_secondaryBackingStoreBytes; |
363 #endif | 363 #endif |
364 }; | 364 }; |
365 | 365 |
366 | 366 |
367 } // namespace WebCore | 367 } // namespace WebCore |
368 | 368 |
369 #endif // RenderLayerCompositor_h | 369 #endif // RenderLayerCompositor_h |
OLD | NEW |