| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Whether the given RL needs to paint into its own separate backing (and he
nce would need its own CompositedLayerMapping). | 248 // Whether the given RL needs to paint into its own separate backing (and he
nce would need its own CompositedLayerMapping). |
| 249 bool needsOwnBacking(const RenderLayer*) const; | 249 bool needsOwnBacking(const RenderLayer*) const; |
| 250 // Whether the layer could ever be composited. | 250 // Whether the layer could ever be composited. |
| 251 bool canBeComposited(const RenderLayer*) const; | 251 bool canBeComposited(const RenderLayer*) const; |
| 252 | 252 |
| 253 // Returns all direct reasons that a layer should be composited. | 253 // Returns all direct reasons that a layer should be composited. |
| 254 CompositingReasons directReasonsForCompositing(const RenderLayer*) const; | 254 CompositingReasons directReasonsForCompositing(const RenderLayer*) const; |
| 255 | 255 |
| 256 void updateDirectCompositingReasons(RenderLayer*); | 256 void updateDirectCompositingReasons(RenderLayer*); |
| 257 | 257 |
| 258 void updateCompositingLayersInternal(); |
| 259 |
| 258 // Returns indirect reasons that a layer should be composited because of som
ething in its subtree. | 260 // Returns indirect reasons that a layer should be composited because of som
ething in its subtree. |
| 259 CompositingReasons subtreeReasonsForCompositing(RenderObject*, bool hasCompo
sitedDescendants, bool has3DTransformedDescendants) const; | 261 CompositingReasons subtreeReasonsForCompositing(RenderObject*, bool hasCompo
sitedDescendants, bool has3DTransformedDescendants) const; |
| 260 | 262 |
| 261 // Make or destroy the CompositedLayerMapping for this layer; returns true i
f the compositedLayerMapping changed. | 263 // Make or destroy the CompositedLayerMapping for this layer; returns true i
f the compositedLayerMapping changed. |
| 262 bool allocateOrClearCompositedLayerMapping(RenderLayer*); | 264 bool allocateOrClearCompositedLayerMapping(RenderLayer*); |
| 263 bool updateSquashingAssignment(RenderLayer*, SquashingState&); | 265 bool updateSquashingAssignment(RenderLayer*, SquashingState&); |
| 264 | 266 |
| 265 void clearMappingForRenderLayerIncludingDescendants(RenderLayer*); | 267 void clearMappingForRenderLayerIncludingDescendants(RenderLayer*); |
| 266 | 268 |
| 267 // Repaint the given rect (which is layer's coords), and regions of child la
yers that intersect that rect. | 269 // Repaint the given rect (which is layer's coords), and regions of child la
yers that intersect that rect. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 397 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 396 #if USE(RUBBER_BANDING) | 398 #if USE(RUBBER_BANDING) |
| 397 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 399 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 398 #endif | 400 #endif |
| 399 }; | 401 }; |
| 400 | 402 |
| 401 | 403 |
| 402 } // namespace WebCore | 404 } // namespace WebCore |
| 403 | 405 |
| 404 #endif // RenderLayerCompositor_h | 406 #endif // RenderLayerCompositor_h |
| OLD | NEW |