| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Notify us that a layer has been added or removed | 128 // Notify us that a layer has been added or removed |
| 129 void layerWasAdded(RenderLayer* parent, RenderLayer* child); | 129 void layerWasAdded(RenderLayer* parent, RenderLayer* child); |
| 130 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); | 130 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); |
| 131 | 131 |
| 132 // Get the nearest ancestor layer that has overflow or clip, but is not a st
acking context | 132 // Get the nearest ancestor layer that has overflow or clip, but is not a st
acking context |
| 133 RenderLayer* enclosingNonStackingClippingLayer(const RenderLayer* layer) con
st; | 133 RenderLayer* enclosingNonStackingClippingLayer(const RenderLayer* layer) con
st; |
| 134 | 134 |
| 135 // Repaint parts of all composited layers that intersect the given absolute
rectangle. | 135 // Repaint parts of all composited layers that intersect the given absolute
rectangle. |
| 136 void repaintCompositedLayersAbsoluteRect(const IntRect&); | 136 void repaintCompositedLayersAbsoluteRect(const IntRect&); |
| 137 | 137 |
| 138 // Returns true if the given layer needs it own backing store. | |
| 139 bool requiresOwnBackingStore(const RenderLayer*, const RenderLayer* composit
ingAncestorLayer) const; | |
| 140 | |
| 141 RenderLayer* rootRenderLayer() const; | 138 RenderLayer* rootRenderLayer() const; |
| 142 GraphicsLayer* rootGraphicsLayer() const; | 139 GraphicsLayer* rootGraphicsLayer() const; |
| 143 GraphicsLayer* scrollLayer() const; | 140 GraphicsLayer* scrollLayer() const; |
| 144 | 141 |
| 145 enum RootLayerAttachment { | 142 enum RootLayerAttachment { |
| 146 RootLayerUnattached, | 143 RootLayerUnattached, |
| 147 RootLayerAttachedViaChromeClient, | 144 RootLayerAttachedViaChromeClient, |
| 148 RootLayerAttachedViaEnclosingFrame | 145 RootLayerAttachedViaEnclosingFrame |
| 149 }; | 146 }; |
| 150 | 147 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. | 349 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. |
| 353 double m_obligatoryBackingAreaMegaPixels; | 350 double m_obligatoryBackingAreaMegaPixels; |
| 354 double m_secondaryBackingAreaMegaPixels; | 351 double m_secondaryBackingAreaMegaPixels; |
| 355 #endif | 352 #endif |
| 356 }; | 353 }; |
| 357 | 354 |
| 358 | 355 |
| 359 } // namespace WebCore | 356 } // namespace WebCore |
| 360 | 357 |
| 361 #endif // RenderLayerCompositor_h | 358 #endif // RenderLayerCompositor_h |
| OLD | NEW |