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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 bool shouldUpdateGraphicsLayer(GraphicsLayerUpdater::UpdateType updateType) const { return m_needToUpdateGraphicsLayer || updateType == GraphicsLayerUpdater ::ForceUpdate; } | 192 bool shouldUpdateGraphicsLayer(GraphicsLayerUpdater::UpdateType updateType) const { return m_needToUpdateGraphicsLayer || updateType == GraphicsLayerUpdater ::ForceUpdate; } |
193 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater: :UpdateType) const; | 193 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater: :UpdateType) const; |
194 void clearNeedsGraphicsLayerUpdate(); | 194 void clearNeedsGraphicsLayerUpdate(); |
195 | 195 |
196 #if !ASSERT_DISABLED | 196 #if !ASSERT_DISABLED |
197 void assertNeedsToUpdateGraphicsLayerBitsCleared(); | 197 void assertNeedsToUpdateGraphicsLayerBitsCleared(); |
198 #endif | 198 #endif |
199 | 199 |
200 virtual String debugName(const GraphicsLayer*) OVERRIDE; | 200 virtual String debugName(const GraphicsLayer*) OVERRIDE; |
201 | 201 |
202 LayoutSize contentOffsetInCompositingLayer() const; | |
Ian Vollick
2014/04/24 03:15:28
Thanks for fixing the typo :)
| |
203 | |
202 private: | 204 private: |
203 void createPrimaryGraphicsLayer(); | 205 void createPrimaryGraphicsLayer(); |
204 void destroyGraphicsLayers(); | 206 void destroyGraphicsLayers(); |
205 | 207 |
206 PassOwnPtr<GraphicsLayer> createGraphicsLayer(CompositingReasons); | 208 PassOwnPtr<GraphicsLayer> createGraphicsLayer(CompositingReasons); |
207 bool toggleScrollbarLayerIfNeeded(OwnPtr<GraphicsLayer>&, bool needsLayer, C ompositingReasons); | 209 bool toggleScrollbarLayerIfNeeded(OwnPtr<GraphicsLayer>&, bool needsLayer, C ompositingReasons); |
208 | 210 |
209 RenderLayerModelObject* renderer() const { return m_owningLayer.renderer(); } | 211 RenderLayerModelObject* renderer() const { return m_owningLayer.renderer(); } |
210 RenderLayerCompositor* compositor() const { return m_owningLayer.compositor( ); } | 212 RenderLayerCompositor* compositor() const { return m_owningLayer.compositor( ); } |
211 | 213 |
(...skipping 15 matching lines...) Expand all Loading... | |
227 void updateDrawsContent(); | 229 void updateDrawsContent(); |
228 void updateChildrenTransform(); | 230 void updateChildrenTransform(); |
229 void registerScrollingLayers(); | 231 void registerScrollingLayers(); |
230 | 232 |
231 void adjustBoundsForSubPixelAccumulation(const RenderLayer* compositedAncest or, IntRect& localCompositingBounds, IntRect& relativeCompositingBounds, IntPoin t& delta); | 233 void adjustBoundsForSubPixelAccumulation(const RenderLayer* compositedAncest or, IntRect& localCompositingBounds, IntRect& relativeCompositingBounds, IntPoin t& delta); |
232 | 234 |
233 void setBackgroundLayerPaintsFixedRootBackground(bool); | 235 void setBackgroundLayerPaintsFixedRootBackground(bool); |
234 | 236 |
235 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; | 237 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; |
236 | 238 |
237 LayoutSize contentOffsetInCompostingLayer() const; | |
238 // Result is transform origin in pixels. | 239 // Result is transform origin in pixels. |
239 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 240 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
240 | 241 |
241 void updateSquashingLayerGeometry(const IntPoint& delta); | 242 void updateSquashingLayerGeometry(const IntPoint& delta); |
242 | 243 |
243 void updateOpacity(const RenderStyle*); | 244 void updateOpacity(const RenderStyle*); |
244 void updateTransform(const RenderStyle*); | 245 void updateTransform(const RenderStyle*); |
245 void updateLayerBlendMode(const RenderStyle*); | 246 void updateLayerBlendMode(const RenderStyle*); |
246 void updateIsRootForIsolatedGroup(); | 247 void updateIsRootForIsolatedGroup(); |
247 void updateHasGpuRasterizationHint(const RenderStyle*); | 248 void updateHasGpuRasterizationHint(const RenderStyle*); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
368 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 369 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
369 bool m_canCompositeFilters : 1; | 370 bool m_canCompositeFilters : 1; |
370 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 371 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
371 bool m_needToUpdateGraphicsLayer : 1; | 372 bool m_needToUpdateGraphicsLayer : 1; |
372 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 373 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
373 }; | 374 }; |
374 | 375 |
375 } // namespace WebCore | 376 } // namespace WebCore |
376 | 377 |
377 #endif // CompositedLayerMapping_h | 378 #endif // CompositedLayerMapping_h |
OLD | NEW |