| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 void updateFilters(const RenderStyle*); | 164 void updateFilters(const RenderStyle*); |
| 165 bool canCompositeFilters() const { return m_canCompositeFilters; } | 165 bool canCompositeFilters() const { return m_canCompositeFilters; } |
| 166 | 166 |
| 167 // Return an estimate of the backing store area (in pixels) allocated by thi
s object's GraphicsLayers. | 167 // Return an estimate of the backing store area (in pixels) allocated by thi
s object's GraphicsLayers. |
| 168 double backingStoreMemoryEstimate() const; | 168 double backingStoreMemoryEstimate() const; |
| 169 | 169 |
| 170 void setBlendMode(BlendMode); | 170 void setBlendMode(BlendMode); |
| 171 void reportMemoryUsage(MemoryObjectInfo*) const; | 171 void reportMemoryUsage(MemoryObjectInfo*) const; |
| 172 | 172 |
| 173 virtual String debugName(const GraphicsLayer*) OVERRIDE; |
| 174 |
| 173 private: | 175 private: |
| 174 void createPrimaryGraphicsLayer(); | 176 void createPrimaryGraphicsLayer(); |
| 175 void destroyGraphicsLayers(); | 177 void destroyGraphicsLayers(); |
| 176 | 178 |
| 177 PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String& name, Compositin
gReasons); | 179 PassOwnPtr<GraphicsLayer> createGraphicsLayer(CompositingReasons); |
| 178 | 180 |
| 179 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} | 181 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} |
| 180 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } | 182 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } |
| 181 | 183 |
| 182 void updateInternalHierarchy(); | 184 void updateInternalHierarchy(); |
| 183 bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip); | 185 bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip); |
| 184 bool updateOverflowControlsLayers(bool needsHorizontalScrollbarLayer, bool n
eedsVerticalScrollbarLayer, bool needsScrollCornerLayer); | 186 bool updateOverflowControlsLayers(bool needsHorizontalScrollbarLayer, bool n
eedsVerticalScrollbarLayer, bool needsScrollCornerLayer); |
| 185 bool updateForegroundLayer(bool needsForegroundLayer); | 187 bool updateForegroundLayer(bool needsForegroundLayer); |
| 186 bool updateBackgroundLayer(bool needsBackgroundLayer); | 188 bool updateBackgroundLayer(bool needsBackgroundLayer); |
| 187 bool updateMaskLayer(bool needsMaskLayer); | 189 bool updateMaskLayer(bool needsMaskLayer); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 bool m_boundsConstrainedByClipping; | 265 bool m_boundsConstrainedByClipping; |
| 264 bool m_isMainFrameRenderViewLayer; | 266 bool m_isMainFrameRenderViewLayer; |
| 265 bool m_requiresOwnBackingStore; | 267 bool m_requiresOwnBackingStore; |
| 266 bool m_canCompositeFilters; | 268 bool m_canCompositeFilters; |
| 267 bool m_backgroundLayerPaintsFixedRootBackground; | 269 bool m_backgroundLayerPaintsFixedRootBackground; |
| 268 }; | 270 }; |
| 269 | 271 |
| 270 } // namespace WebCore | 272 } // namespace WebCore |
| 271 | 273 |
| 272 #endif // RenderLayerBacking_h | 274 #endif // RenderLayerBacking_h |
| OLD | NEW |