| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // composited RenderLayers. It determines which RenderLayers | 54 // composited RenderLayers. It determines which RenderLayers |
| 55 // become compositing, and creates and maintains a hierarchy of | 55 // become compositing, and creates and maintains a hierarchy of |
| 56 // GraphicsLayers based on the RenderLayer painting order. | 56 // GraphicsLayers based on the RenderLayer painting order. |
| 57 // | 57 // |
| 58 // There is one RenderLayerCompositor per RenderView. | 58 // There is one RenderLayerCompositor per RenderView. |
| 59 | 59 |
| 60 class RenderLayerCompositor FINAL : public GraphicsLayerClient { | 60 class RenderLayerCompositor FINAL : public GraphicsLayerClient { |
| 61 WTF_MAKE_FAST_ALLOCATED; | 61 WTF_MAKE_FAST_ALLOCATED; |
| 62 public: | 62 public: |
| 63 explicit RenderLayerCompositor(RenderView*); | 63 explicit RenderLayerCompositor(RenderView*); |
| 64 ~RenderLayerCompositor(); | 64 virtual ~RenderLayerCompositor(); |
| 65 | 65 |
| 66 // Return true if this RenderView is in "compositing mode" (i.e. has one or
more | 66 // Return true if this RenderView is in "compositing mode" (i.e. has one or
more |
| 67 // composited RenderLayers) | 67 // composited RenderLayers) |
| 68 bool inCompositingMode() const { return m_compositing; } | 68 bool inCompositingMode() const { return m_compositing; } |
| 69 // This will make a compositing layer at the root automatically, and hook up
to | 69 // This will make a compositing layer at the root automatically, and hook up
to |
| 70 // the native view/window system. | 70 // the native view/window system. |
| 71 void enableCompositingMode(bool enable = true); | 71 void enableCompositingMode(bool enable = true); |
| 72 | 72 |
| 73 bool inForcedCompositingMode() const { return m_forceCompositingMode; } | 73 bool inForcedCompositingMode() const { return m_forceCompositingMode; } |
| 74 | 74 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 368 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 369 #if USE(RUBBER_BANDING) | 369 #if USE(RUBBER_BANDING) |
| 370 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 370 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 371 #endif | 371 #endif |
| 372 }; | 372 }; |
| 373 | 373 |
| 374 | 374 |
| 375 } // namespace WebCore | 375 } // namespace WebCore |
| 376 | 376 |
| 377 #endif // RenderLayerCompositor_h | 377 #endif // RenderLayerCompositor_h |
| OLD | NEW |