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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } | 83 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } |
84 | 84 |
85 // Layer to clip children | 85 // Layer to clip children |
86 bool hasClippingLayer() const { return m_childContainmentLayer; } | 86 bool hasClippingLayer() const { return m_childContainmentLayer; } |
87 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get();
} | 87 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get();
} |
88 | 88 |
89 // Layer to get clipped by ancestor | 89 // Layer to get clipped by ancestor |
90 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer; } | 90 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer; } |
91 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye
r.get(); } | 91 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye
r.get(); } |
92 | 92 |
93 bool hasContentsLayer() const { return m_foregroundLayer; } | |
94 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); } | 93 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); } |
95 | 94 |
96 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); } | 95 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); } |
97 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL
ayerPaintsFixedRootBackground; } | 96 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL
ayerPaintsFixedRootBackground; } |
98 | 97 |
99 bool hasScrollingLayer() const { return m_scrollingLayer; } | 98 bool hasScrollingLayer() const { return m_scrollingLayer; } |
100 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } | 99 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } |
101 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa
yer.get(); } | 100 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa
yer.get(); } |
102 GraphicsLayer* scrollingBlockSelectionLayer() const { return m_scrollingBloc
kSelectionLayer.get(); } | 101 GraphicsLayer* scrollingBlockSelectionLayer() const { return m_scrollingBloc
kSelectionLayer.get(); } |
103 | 102 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // Result is transform origin in pixels. | 265 // Result is transform origin in pixels. |
267 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 266 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
268 | 267 |
269 void updateOpacity(const RenderStyle*); | 268 void updateOpacity(const RenderStyle*); |
270 void updateTransform(const RenderStyle*); | 269 void updateTransform(const RenderStyle*); |
271 void updateLayerBlendMode(const RenderStyle*); | 270 void updateLayerBlendMode(const RenderStyle*); |
272 void updateIsRootForIsolatedGroup(); | 271 void updateIsRootForIsolatedGroup(); |
273 // Return the opacity value that this layer should use for compositing. | 272 // Return the opacity value that this layer should use for compositing. |
274 float compositingOpacity(float rendererOpacity) const; | 273 float compositingOpacity(float rendererOpacity) const; |
275 | 274 |
276 bool isMainFrameRenderViewLayer() const; | |
277 | |
278 bool paintsChildren() const; | 275 bool paintsChildren() const; |
279 | 276 |
280 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. | 277 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. |
281 bool containsPaintedContent() const; | 278 bool containsPaintedContent() const; |
282 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. | 279 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. |
283 bool isDirectlyCompositedImage() const; | 280 bool isDirectlyCompositedImage() const; |
284 void updateImageContents(); | 281 void updateImageContents(); |
285 | 282 |
286 Color rendererBackgroundColor() const; | 283 Color rendererBackgroundColor() const; |
287 void updateBackgroundColor(); | 284 void updateBackgroundColor(); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 unsigned m_isMainFrameRenderViewLayer : 1; | 423 unsigned m_isMainFrameRenderViewLayer : 1; |
427 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 424 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
428 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | 425 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; |
429 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 426 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
430 unsigned m_scrollingContentsAreEmpty : 1; | 427 unsigned m_scrollingContentsAreEmpty : 1; |
431 }; | 428 }; |
432 | 429 |
433 } // namespace blink | 430 } // namespace blink |
434 | 431 |
435 #endif // CompositedLayerMapping_h | 432 #endif // CompositedLayerMapping_h |
OLD | NEW |