OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 #if ENABLE(VIDEO) | 210 #if ENABLE(VIDEO) |
211 // Use by RenderVideo to ask if it should try to use accelerated compositing
. | 211 // Use by RenderVideo to ask if it should try to use accelerated compositing
. |
212 bool canAccelerateVideoRendering(RenderVideo*) const; | 212 bool canAccelerateVideoRendering(RenderVideo*) const; |
213 #endif | 213 #endif |
214 | 214 |
215 // Walk the tree looking for layers with 3d transforms. Useful in case you n
eed | 215 // Walk the tree looking for layers with 3d transforms. Useful in case you n
eed |
216 // to know if there is non-affine content, e.g. for drawing into an image. | 216 // to know if there is non-affine content, e.g. for drawing into an image. |
217 bool has3DContent() const; | 217 bool has3DContent() const; |
218 | 218 |
219 // Most platforms connect compositing layer trees between iframes and their
parent document. | |
220 // Some (currently just Mac) allow iframes to do their own compositing. | |
221 static bool allowsIndependentlyCompositedFrames(const FrameView*); | |
222 bool shouldPropagateCompositingToEnclosingFrame() const; | 219 bool shouldPropagateCompositingToEnclosingFrame() const; |
223 | 220 |
224 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); | 221 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); |
225 // Return true if the layers changed. | 222 // Return true if the layers changed. |
226 static bool parentFrameContentLayers(RenderPart*); | 223 static bool parentFrameContentLayers(RenderPart*); |
227 | 224 |
228 // Update the geometry of the layers used for clipping and scrolling in fram
es. | 225 // Update the geometry of the layers used for clipping and scrolling in fram
es. |
229 void frameViewDidChangeLocation(const IntPoint& contentsOffset); | 226 void frameViewDidChangeLocation(const IntPoint& contentsOffset); |
230 void frameViewDidChangeSize(); | 227 void frameViewDidChangeSize(); |
231 void frameViewDidScroll(); | 228 void frameViewDidScroll(); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. | 444 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. |
448 double m_obligatoryBackingStoreBytes; | 445 double m_obligatoryBackingStoreBytes; |
449 double m_secondaryBackingStoreBytes; | 446 double m_secondaryBackingStoreBytes; |
450 #endif | 447 #endif |
451 }; | 448 }; |
452 | 449 |
453 | 450 |
454 } // namespace WebCore | 451 } // namespace WebCore |
455 | 452 |
456 #endif // RenderLayerCompositor_h | 453 #endif // RenderLayerCompositor_h |
OLD | NEW |