Chromium Code Reviews| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 bool updateBackgroundLayer(bool needsBackgroundLayer); | 226 bool updateBackgroundLayer(bool needsBackgroundLayer); |
| 227 bool updateMaskLayer(bool needsMaskLayer); | 227 bool updateMaskLayer(bool needsMaskLayer); |
| 228 bool updateClippingMaskLayers(bool needsChildClippingMaskLayer); | 228 bool updateClippingMaskLayers(bool needsChildClippingMaskLayer); |
| 229 bool requiresHorizontalScrollbarLayer() const { return m_owningLayer->scroll ableArea() && m_owningLayer->scrollableArea()->horizontalScrollbar(); } | 229 bool requiresHorizontalScrollbarLayer() const { return m_owningLayer->scroll ableArea() && m_owningLayer->scrollableArea()->horizontalScrollbar(); } |
| 230 bool requiresVerticalScrollbarLayer() const { return m_owningLayer->scrollab leArea() && m_owningLayer->scrollableArea()->verticalScrollbar(); } | 230 bool requiresVerticalScrollbarLayer() const { return m_owningLayer->scrollab leArea() && m_owningLayer->scrollableArea()->verticalScrollbar(); } |
| 231 bool requiresScrollCornerLayer() const { return m_owningLayer->scrollableAre a() && !m_owningLayer->scrollableArea()->scrollCornerAndResizerRect().isEmpty(); } | 231 bool requiresScrollCornerLayer() const { return m_owningLayer->scrollableAre a() && !m_owningLayer->scrollableArea()->scrollCornerAndResizerRect().isEmpty(); } |
| 232 bool updateScrollingLayers(bool scrollingLayers); | 232 bool updateScrollingLayers(bool scrollingLayers); |
| 233 void updateScrollParent(RenderLayer*); | 233 void updateScrollParent(RenderLayer*); |
| 234 void updateClipParent(RenderLayer*); | 234 void updateClipParent(RenderLayer*); |
| 235 bool updateSquashingLayers(bool needsSquashingLayers); | 235 bool updateSquashingLayers(bool needsSquashingLayers); |
| 236 void updateDrawsContent(bool isSimpleContainer); | 236 void updateDrawsContent(); |
| 237 void updateChildrenTransform(); | 237 void updateChildrenTransform(); |
| 238 void registerScrollingLayers(); | 238 void registerScrollingLayers(); |
| 239 | 239 |
| 240 void adjustBoundsForSubPixelAccumulation(const RenderLayer* compositedAncest or, IntRect& localCompositingBounds, IntRect& relativeCompositingBounds, IntPoin t& delta); | 240 void adjustBoundsForSubPixelAccumulation(const RenderLayer* compositedAncest or, IntRect& localCompositingBounds, IntRect& relativeCompositingBounds, IntPoin t& delta); |
| 241 | 241 |
| 242 void setBackgroundLayerPaintsFixedRootBackground(bool); | 242 void setBackgroundLayerPaintsFixedRootBackground(bool); |
| 243 | 243 |
| 244 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; | 244 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; |
| 245 | 245 |
| 246 LayoutSize contentOffsetInCompostingLayer() const; | 246 LayoutSize contentOffsetInCompostingLayer() const; |
| 247 // Result is transform origin in pixels. | 247 // Result is transform origin in pixels. |
| 248 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 248 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
| 249 // Result is perspective origin in pixels. | 249 // Result is perspective origin in pixels. |
| 250 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; | 250 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; |
| 251 | 251 |
| 252 void updateSquashingLayerGeometry(const IntPoint& delta); | 252 void updateSquashingLayerGeometry(const IntPoint& delta); |
| 253 | 253 |
| 254 void updateOpacity(const RenderStyle*); | 254 void updateOpacity(const RenderStyle*); |
| 255 void updateTransform(const RenderStyle*); | 255 void updateTransform(const RenderStyle*); |
| 256 void updateLayerBlendMode(const RenderStyle*); | 256 void updateLayerBlendMode(const RenderStyle*); |
| 257 void updateIsRootForIsolatedGroup(); | 257 void updateIsRootForIsolatedGroup(); |
| 258 // Return the opacity value that this layer should use for compositing. | 258 // Return the opacity value that this layer should use for compositing. |
| 259 float compositingOpacity(float rendererOpacity) const; | 259 float compositingOpacity(float rendererOpacity) const; |
| 260 | 260 |
| 261 bool isMainFrameRenderViewLayer() const; | 261 bool isMainFrameRenderViewLayer() const; |
| 262 | 262 |
| 263 bool paintsBoxDecorations() const; | |
| 264 bool paintsChildren() const; | 263 bool paintsChildren() const; |
| 265 | 264 |
| 266 // Returns true if this compositing layer has no visible content. | |
| 267 bool isSimpleContainerCompositingLayer() const; | |
| 268 // Returns true if this layer has content that needs to be rendered by paint ing into the backing store. | 265 // Returns true if this layer has content that needs to be rendered by paint ing into the backing store. |
| 269 bool containsPaintedContent(bool isSimpleContainer) const; | 266 bool containsPaintedContent() const; |
| 267 bool paintsIntoOwningLayer() const; | |
|
alokp
2014/02/26 22:11:16
I do not understand what this function is returnin
| |
| 270 // Returns true if the RenderLayer just contains an image that we can compos ite directly. | 268 // Returns true if the RenderLayer just contains an image that we can compos ite directly. |
| 271 bool isDirectlyCompositedImage() const; | 269 bool isDirectlyCompositedImage() const; |
| 272 void updateImageContents(); | 270 void updateImageContents(); |
| 273 | 271 |
| 274 Color rendererBackgroundColor() const; | 272 Color rendererBackgroundColor() const; |
| 275 void updateBackgroundColor(bool isSimpleContainer); | 273 void updateBackgroundColor(); |
| 276 void updateContentsRect(bool isSimpleContainer); | 274 void updateContentsRect(); |
| 277 | 275 |
| 278 void updateCompositingReasons(); | 276 void updateCompositingReasons(); |
| 279 | 277 |
| 280 bool hasVisibleNonCompositingDescendantLayers() const; | 278 bool hasVisibleNonCompositingDescendantLayers() const; |
| 281 | 279 |
| 282 bool shouldClipCompositedBounds() const; | 280 bool shouldClipCompositedBounds() const; |
| 283 | 281 |
| 284 void paintsIntoCompositedAncestorChanged(); | 282 void paintsIntoCompositedAncestorChanged(); |
| 285 | 283 |
| 286 void doPaintTask(GraphicsLayerPaintInfo&, GraphicsContext*, const IntRect& c lip); | 284 void doPaintTask(GraphicsLayerPaintInfo&, GraphicsContext*, const IntRect& c lip); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 bool m_isMainFrameRenderViewLayer; | 365 bool m_isMainFrameRenderViewLayer; |
| 368 bool m_requiresOwnBackingStoreForIntrinsicReasons; | 366 bool m_requiresOwnBackingStoreForIntrinsicReasons; |
| 369 bool m_requiresOwnBackingStoreForAncestorReasons; | 367 bool m_requiresOwnBackingStoreForAncestorReasons; |
| 370 bool m_canCompositeFilters; | 368 bool m_canCompositeFilters; |
| 371 bool m_backgroundLayerPaintsFixedRootBackground; | 369 bool m_backgroundLayerPaintsFixedRootBackground; |
| 372 }; | 370 }; |
| 373 | 371 |
| 374 } // namespace WebCore | 372 } // namespace WebCore |
| 375 | 373 |
| 376 #endif // CompositedLayerMapping_h | 374 #endif // CompositedLayerMapping_h |
| OLD | NEW |