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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } | 170 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } |
171 | 171 |
172 #if ENABLE(CSS_FILTERS) | 172 #if ENABLE(CSS_FILTERS) |
173 void updateFilters(const RenderStyle*); | 173 void updateFilters(const RenderStyle*); |
174 bool canCompositeFilters() const { return m_canCompositeFilters; } | 174 bool canCompositeFilters() const { return m_canCompositeFilters; } |
175 #endif | 175 #endif |
176 | 176 |
177 // Return an estimate of the backing store area (in pixels) allocated by thi
s object's GraphicsLayers. | 177 // Return an estimate of the backing store area (in pixels) allocated by thi
s object's GraphicsLayers. |
178 double backingStoreMemoryEstimate() const; | 178 double backingStoreMemoryEstimate() const; |
179 | 179 |
180 #if ENABLE(CSS_COMPOSITING) | |
181 void setBlendMode(BlendMode); | 180 void setBlendMode(BlendMode); |
182 #endif | |
183 void reportMemoryUsage(MemoryObjectInfo*) const; | 181 void reportMemoryUsage(MemoryObjectInfo*) const; |
184 | 182 |
185 private: | 183 private: |
186 void createPrimaryGraphicsLayer(); | 184 void createPrimaryGraphicsLayer(); |
187 void destroyGraphicsLayers(); | 185 void destroyGraphicsLayers(); |
188 | 186 |
189 PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String&); | 187 PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String&); |
190 | 188 |
191 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} | 189 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} |
192 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } | 190 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } |
(...skipping 18 matching lines...) Expand all Loading... |
211 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; | 209 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; |
212 | 210 |
213 IntSize contentOffsetInCompostingLayer() const; | 211 IntSize contentOffsetInCompostingLayer() const; |
214 // Result is transform origin in pixels. | 212 // Result is transform origin in pixels. |
215 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 213 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
216 // Result is perspective origin in pixels. | 214 // Result is perspective origin in pixels. |
217 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; | 215 FloatPoint computePerspectiveOrigin(const IntRect& borderBox) const; |
218 | 216 |
219 void updateOpacity(const RenderStyle*); | 217 void updateOpacity(const RenderStyle*); |
220 void updateTransform(const RenderStyle*); | 218 void updateTransform(const RenderStyle*); |
221 #if ENABLE(CSS_COMPOSITING) | |
222 void updateLayerBlendMode(const RenderStyle*); | 219 void updateLayerBlendMode(const RenderStyle*); |
223 #endif | |
224 // Return the opacity value that this layer should use for compositing. | 220 // Return the opacity value that this layer should use for compositing. |
225 float compositingOpacity(float rendererOpacity) const; | 221 float compositingOpacity(float rendererOpacity) const; |
226 | 222 |
227 bool isMainFrameRenderViewLayer() const; | 223 bool isMainFrameRenderViewLayer() const; |
228 | 224 |
229 bool paintsBoxDecorations() const; | 225 bool paintsBoxDecorations() const; |
230 bool paintsChildren() const; | 226 bool paintsChildren() const; |
231 | 227 |
232 // Returns true if this compositing layer has no visible content. | 228 // Returns true if this compositing layer has no visible content. |
233 bool isSimpleContainerCompositingLayer() const; | 229 bool isSimpleContainerCompositingLayer() const; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 bool m_requiresOwnBackingStore; | 273 bool m_requiresOwnBackingStore; |
278 #if ENABLE(CSS_FILTERS) | 274 #if ENABLE(CSS_FILTERS) |
279 bool m_canCompositeFilters; | 275 bool m_canCompositeFilters; |
280 #endif | 276 #endif |
281 bool m_backgroundLayerPaintsFixedRootBackground; | 277 bool m_backgroundLayerPaintsFixedRootBackground; |
282 }; | 278 }; |
283 | 279 |
284 } // namespace WebCore | 280 } // namespace WebCore |
285 | 281 |
286 #endif // RenderLayerBacking_h | 282 #endif // RenderLayerBacking_h |
OLD | NEW |