| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial subt
ree of RenderLayers into a GraphicsLayer. | 49 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial subt
ree of RenderLayers into a GraphicsLayer. |
| 50 struct GraphicsLayerPaintInfo { | 50 struct GraphicsLayerPaintInfo { |
| 51 RenderLayer* renderLayer; | 51 RenderLayer* renderLayer; |
| 52 | 52 |
| 53 LayoutRect compositedBounds; | 53 LayoutRect compositedBounds; |
| 54 | 54 |
| 55 // At first, the m_squashingLayer's bounds/location are not known. The value
offsetFromSquashingCLM is | 55 // At first, the m_squashingLayer's bounds/location are not known. The value
offsetFromSquashingCLM is |
| 56 // an intermediate offset for a squashed RenderLayer, described with respect
to the CompositedLayerMapping's | 56 // an intermediate offset for a squashed RenderLayer, described with respect
to the CompositedLayerMapping's |
| 57 // owning layer that would eventually have the m_squashingLayer. Once the sh
ared GraphicsLayer's bounds are | 57 // owning layer that would eventually have the m_squashingLayer. Once the sh
ared GraphicsLayer's bounds are |
| 58 // known, then we can trivially convert this offset to m_squashingLayer's sp
ace. | 58 // known, then we can trivially convert this offset to m_squashingLayer's sp
ace. |
| 59 IntSize offsetFromSquashingCLM; | 59 LayoutSize offsetFromSquashingCLM; |
| 60 | 60 |
| 61 // Offset describing where this squashed RenderLayer paints into the shared
GraphicsLayer backing. | 61 // Offset describing where this squashed RenderLayer paints into the shared
GraphicsLayer backing. |
| 62 IntSize offsetFromRenderer; | 62 IntSize offsetFromRenderer; |
| 63 | 63 |
| 64 GraphicsLayerPaintingPhase paintingPhase; | 64 GraphicsLayerPaintingPhase paintingPhase; |
| 65 | 65 |
| 66 bool isBackgroundLayer; | 66 bool isBackgroundLayer; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // CompositedLayerMapping keeps track of how RenderLayers of the render tree cor
respond to | 69 // CompositedLayerMapping keeps track of how RenderLayers of the render tree cor
respond to |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void animationFinished(const String& name); | 147 void animationFinished(const String& name); |
| 148 | 148 |
| 149 LayoutRect compositedBounds() const; | 149 LayoutRect compositedBounds() const; |
| 150 void setCompositedBounds(const LayoutRect&); | 150 void setCompositedBounds(const LayoutRect&); |
| 151 void updateCompositedBounds(); | 151 void updateCompositedBounds(); |
| 152 | 152 |
| 153 void updateAfterWidgetResize(); | 153 void updateAfterWidgetResize(); |
| 154 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); | 154 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); |
| 155 bool hasUnpositionedOverflowControlsLayers() const; | 155 bool hasUnpositionedOverflowControlsLayers() const; |
| 156 | 156 |
| 157 void addRenderLayerToSquashingGraphicsLayer(RenderLayer*, IntSize offsetFrom
SquashingCLM, size_t nextSquashedLayerIndex); | 157 void addRenderLayerToSquashingGraphicsLayer(RenderLayer*, LayoutSize offsetF
romSquashingCLM, size_t nextSquashedLayerIndex); |
| 158 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); | 158 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); |
| 159 | 159 |
| 160 // GraphicsLayerClient interface | 160 // GraphicsLayerClient interface |
| 161 virtual void notifyAnimationStarted(const GraphicsLayer*, double wallClockTi
me, double monotonicTime) OVERRIDE; | 161 virtual void notifyAnimationStarted(const GraphicsLayer*, double wallClockTi
me, double monotonicTime) OVERRIDE; |
| 162 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; | 162 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; |
| 163 virtual bool isTrackingRepaints() const OVERRIDE; | 163 virtual bool isTrackingRepaints() const OVERRIDE; |
| 164 | 164 |
| 165 PassOwnPtr<Vector<FloatRect> > collectTrackedRepaintRects() const; | 165 PassOwnPtr<Vector<FloatRect> > collectTrackedRepaintRects() const; |
| 166 | 166 |
| 167 #ifndef NDEBUG | 167 #ifndef NDEBUG |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 bool m_isMainFrameRenderViewLayer; | 346 bool m_isMainFrameRenderViewLayer; |
| 347 bool m_requiresOwnBackingStoreForIntrinsicReasons; | 347 bool m_requiresOwnBackingStoreForIntrinsicReasons; |
| 348 bool m_requiresOwnBackingStoreForAncestorReasons; | 348 bool m_requiresOwnBackingStoreForAncestorReasons; |
| 349 bool m_canCompositeFilters; | 349 bool m_canCompositeFilters; |
| 350 bool m_backgroundLayerPaintsFixedRootBackground; | 350 bool m_backgroundLayerPaintsFixedRootBackground; |
| 351 }; | 351 }; |
| 352 | 352 |
| 353 } // namespace WebCore | 353 } // namespace WebCore |
| 354 | 354 |
| 355 #endif // CompositedLayerMapping_h | 355 #endif // CompositedLayerMapping_h |
| OLD | NEW |