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