| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // composited RenderLayers) | 68 // composited RenderLayers) |
| 69 bool inCompositingMode() const { return m_compositing; } | 69 bool inCompositingMode() const { return m_compositing; } |
| 70 // This will make a compositing layer at the root automatically, and hook up
to | 70 // This will make a compositing layer at the root automatically, and hook up
to |
| 71 // the native view/window system. | 71 // the native view/window system. |
| 72 void enableCompositingMode(bool enable = true); | 72 void enableCompositingMode(bool enable = true); |
| 73 | 73 |
| 74 bool inForcedCompositingMode() const { return m_forceCompositingMode; } | 74 bool inForcedCompositingMode() const { return m_forceCompositingMode; } |
| 75 | 75 |
| 76 // Returns true if the accelerated compositing is enabled | 76 // Returns true if the accelerated compositing is enabled |
| 77 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing;
} | 77 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing;
} |
| 78 bool isLayerSquashingEnabled() const; |
| 78 | 79 |
| 79 bool canRender3DTransforms() const; | 80 bool canRender3DTransforms() const; |
| 80 | 81 |
| 81 // Copy the accelerated compositing related flags from Settings | 82 // Copy the accelerated compositing related flags from Settings |
| 82 void cacheAcceleratedCompositingFlags(); | 83 void cacheAcceleratedCompositingFlags(); |
| 83 | 84 |
| 84 // 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 |
| 85 // created, destroyed or re-parented). | 86 // created, destroyed or re-parented). |
| 86 void setCompositingLayersNeedRebuild(bool needRebuild = true); | 87 void setCompositingLayersNeedRebuild(bool needRebuild = true); |
| 87 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe
build; } | 88 bool compositingLayersNeedRebuild() const { return m_compositingLayersNeedRe
build; } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 344 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 344 #if USE(RUBBER_BANDING) | 345 #if USE(RUBBER_BANDING) |
| 345 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 346 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 346 #endif | 347 #endif |
| 347 }; | 348 }; |
| 348 | 349 |
| 349 | 350 |
| 350 } // namespace WebCore | 351 } // namespace WebCore |
| 351 | 352 |
| 352 #endif // RenderLayerCompositor_h | 353 #endif // RenderLayerCompositor_h |
| OLD | NEW |