| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing;
} | 77 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing;
} |
| 78 bool layerSquashingEnabled() const; | 78 bool layerSquashingEnabled() const; |
| 79 | 79 |
| 80 bool canRender3DTransforms() const; | 80 bool canRender3DTransforms() const; |
| 81 | 81 |
| 82 // Copy the accelerated compositing related flags from Settings | 82 // Copy the accelerated compositing related flags from Settings |
| 83 void cacheAcceleratedCompositingFlags(); | 83 void cacheAcceleratedCompositingFlags(); |
| 84 | 84 |
| 85 // Called when the layer hierarchy needs to be updated (compositing layers h
ave been | 85 // Called when the layer hierarchy needs to be updated (compositing layers h
ave been |
| 86 // created, destroyed or re-parented). | 86 // created, destroyed or re-parented). |
| 87 void setCompositingLayersNeedRebuild(bool needRebuild = true); | 87 void setCompositingLayersNeedRebuild(); |
| 88 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe
build; } | 88 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe
build; } |
| 89 | 89 |
| 90 // Updating properties required for determining if compositing is necessary. | 90 // Updating properties required for determining if compositing is necessary. |
| 91 void updateCompositingRequirementsState(); | 91 void updateCompositingRequirementsState(); |
| 92 void setNeedsUpdateCompositingRequirementsState() { m_needsUpdateCompositing
RequirementsState = true; } | 92 void setNeedsUpdateCompositingRequirementsState() { m_needsUpdateCompositing
RequirementsState = true; } |
| 93 | 93 |
| 94 // Used to indicate that a compositing update will be needed for the next fr
ame that gets drawn. | 94 // Used to indicate that a compositing update will be needed for the next fr
ame that gets drawn. |
| 95 void setNeedsCompositingUpdate(CompositingUpdateType); | 95 void setNeedsCompositingUpdate(CompositingUpdateType); |
| 96 | 96 |
| 97 // Main entry point for a full update. As needed, this function will compute
compositing requirements, | 97 // Main entry point for a full update. As needed, this function will compute
compositing requirements, |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 372 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 373 #if USE(RUBBER_BANDING) | 373 #if USE(RUBBER_BANDING) |
| 374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 375 #endif | 375 #endif |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 | 378 |
| 379 } // namespace WebCore | 379 } // namespace WebCore |
| 380 | 380 |
| 381 #endif // RenderLayerCompositor_h | 381 #endif // RenderLayerCompositor_h |
| OLD | NEW |