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