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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const PaintLayer* compositingContainer, | 96 const PaintLayer* compositingContainer, |
97 const PaintLayer* compositingStackingContext, | 97 const PaintLayer* compositingStackingContext, |
98 Vector<PaintLayer*>& layersNeedingPaintInvalidation); | 98 Vector<PaintLayer*>& layersNeedingPaintInvalidation); |
99 | 99 |
100 // Update whether background paints onto scrolling contents layer. | 100 // Update whether background paints onto scrolling contents layer. |
101 void updateBackgroundPaintsOntoScrollingContentsLayer(); | 101 void updateBackgroundPaintsOntoScrollingContentsLayer(); |
102 | 102 |
103 // Update whether layer needs blending. | 103 // Update whether layer needs blending. |
104 void updateContentsOpaque(); | 104 void updateContentsOpaque(); |
105 | 105 |
| 106 void updateRasterizationPolicy(); |
| 107 |
106 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } | 108 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } |
107 | 109 |
108 // Layer to clip children | 110 // Layer to clip children |
109 bool hasClippingLayer() const { return m_childContainmentLayer.get(); } | 111 bool hasClippingLayer() const { return m_childContainmentLayer.get(); } |
110 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); } | 112 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); } |
111 | 113 |
112 // Layer to get clipped by ancestor | 114 // Layer to get clipped by ancestor |
113 bool hasAncestorClippingLayer() const { | 115 bool hasAncestorClippingLayer() const { |
114 return m_ancestorClippingLayer.get(); | 116 return m_ancestorClippingLayer.get(); |
115 } | 117 } |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // layer and the graphics layer because the scrolling contents layer is | 669 // layer and the graphics layer because the scrolling contents layer is |
668 // clipped by the padding box. | 670 // clipped by the padding box. |
669 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; | 671 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; |
670 | 672 |
671 friend class CompositedLayerMappingTest; | 673 friend class CompositedLayerMappingTest; |
672 }; | 674 }; |
673 | 675 |
674 } // namespace blink | 676 } // namespace blink |
675 | 677 |
676 #endif // CompositedLayerMapping_h | 678 #endif // CompositedLayerMapping_h |
OLD | NEW |