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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 CompositingUpdateFinishAllDeferredWork | 51 CompositingUpdateFinishAllDeferredWork |
52 }; | 52 }; |
53 | 53 |
54 // RenderLayerCompositor manages the hierarchy of | 54 // RenderLayerCompositor manages the hierarchy of |
55 // composited RenderLayers. It determines which RenderLayers | 55 // composited RenderLayers. It determines which RenderLayers |
56 // become compositing, and creates and maintains a hierarchy of | 56 // become compositing, and creates and maintains a hierarchy of |
57 // GraphicsLayers based on the RenderLayer painting order. | 57 // GraphicsLayers based on the RenderLayer painting order. |
58 // | 58 // |
59 // There is one RenderLayerCompositor per RenderView. | 59 // There is one RenderLayerCompositor per RenderView. |
60 | 60 |
61 class RenderLayerCompositor : public GraphicsLayerClient { | 61 class RenderLayerCompositor FINAL : public GraphicsLayerClient { |
62 WTF_MAKE_FAST_ALLOCATED; | 62 WTF_MAKE_FAST_ALLOCATED; |
63 public: | 63 public: |
64 explicit RenderLayerCompositor(RenderView*); | 64 explicit RenderLayerCompositor(RenderView*); |
65 ~RenderLayerCompositor(); | 65 ~RenderLayerCompositor(); |
66 | 66 |
67 // Return true if this RenderView is in "compositing mode" (i.e. has one or
more | 67 // Return true if this RenderView is in "compositing mode" (i.e. has one or
more |
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. |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 362 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
363 #if USE(RUBBER_BANDING) | 363 #if USE(RUBBER_BANDING) |
364 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 364 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
365 #endif | 365 #endif |
366 }; | 366 }; |
367 | 367 |
368 | 368 |
369 } // namespace WebCore | 369 } // namespace WebCore |
370 | 370 |
371 #endif // RenderLayerCompositor_h | 371 #endif // RenderLayerCompositor_h |
OLD | NEW |