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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 178 #if ENABLE(CSS_COMPOSITING) |
179 void setBlendMode(BlendMode); | 179 void setBlendMode(BlendMode); |
180 #endif | 180 #endif |
181 void reportMemoryUsage(MemoryObjectInfo*) const; | |
182 | 181 |
183 private: | 182 private: |
184 void createPrimaryGraphicsLayer(); | 183 void createPrimaryGraphicsLayer(); |
185 void destroyGraphicsLayers(); | 184 void destroyGraphicsLayers(); |
186 | 185 |
187 PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String&); | 186 PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String&); |
188 | 187 |
189 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} | 188 RenderLayerModelObject* renderer() const { return m_owningLayer->renderer();
} |
190 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } | 189 RenderLayerCompositor* compositor() const { return m_owningLayer->compositor
(); } |
191 | 190 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 bool m_boundsConstrainedByClipping; | 272 bool m_boundsConstrainedByClipping; |
274 bool m_isMainFrameRenderViewLayer; | 273 bool m_isMainFrameRenderViewLayer; |
275 bool m_requiresOwnBackingStore; | 274 bool m_requiresOwnBackingStore; |
276 bool m_canCompositeFilters; | 275 bool m_canCompositeFilters; |
277 bool m_backgroundLayerPaintsFixedRootBackground; | 276 bool m_backgroundLayerPaintsFixedRootBackground; |
278 }; | 277 }; |
279 | 278 |
280 } // namespace WebCore | 279 } // namespace WebCore |
281 | 280 |
282 #endif // RenderLayerBacking_h | 281 #endif // RenderLayerBacking_h |
OLD | NEW |