| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 void removeOutOfFlowPositionedLayer(RenderLayer*); | 198 void removeOutOfFlowPositionedLayer(RenderLayer*); |
| 199 | 199 |
| 200 void resetTrackedRepaintRects(); | 200 void resetTrackedRepaintRects(); |
| 201 void setTracksRepaints(bool); | 201 void setTracksRepaints(bool); |
| 202 | 202 |
| 203 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf
terLayout = true; } | 203 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf
terLayout = true; } |
| 204 | 204 |
| 205 // Returns all reasons (direct, indirectly due to subtree, and indirectly du
e to overlap) that a layer should be composited. | 205 // Returns all reasons (direct, indirectly due to subtree, and indirectly du
e to overlap) that a layer should be composited. |
| 206 CompositingReasons reasonsForCompositing(const RenderLayer*) const; | 206 CompositingReasons reasonsForCompositing(const RenderLayer*) const; |
| 207 | 207 |
| 208 // Only called for main frame. Input object can be cross frame. |
| 209 void setCurrentFullscreenRenderer(RenderObject*); |
| 210 |
| 208 private: | 211 private: |
| 209 class OverlapMap; | 212 class OverlapMap; |
| 210 | 213 |
| 211 // GraphicsLayerClient implementation | 214 // GraphicsLayerClient implementation |
| 212 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE {
} | 215 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE {
} |
| 213 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect&) OVERRIDE; | 216 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect&) OVERRIDE; |
| 214 | 217 |
| 215 virtual bool isTrackingRepaints() const OVERRIDE; | 218 virtual bool isTrackingRepaints() const OVERRIDE; |
| 216 | 219 |
| 217 // Whether the given RL needs a compositing layer. | 220 // Whether the given RL needs a compositing layer. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; | 346 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; |
| 344 | 347 |
| 345 // Layers for overflow controls | 348 // Layers for overflow controls |
| 346 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; | 349 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; |
| 347 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 350 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
| 348 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 351 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 349 #if ENABLE(RUBBER_BANDING) | 352 #if ENABLE(RUBBER_BANDING) |
| 350 OwnPtr<GraphicsLayer> m_layerForOverhangAreas; | 353 OwnPtr<GraphicsLayer> m_layerForOverhangAreas; |
| 351 #endif | 354 #endif |
| 352 | 355 |
| 356 RenderObject* m_currentFullscreenRenderer; |
| 357 |
| 353 #if !LOG_DISABLED | 358 #if !LOG_DISABLED |
| 354 int m_rootLayerUpdateCount; | 359 int m_rootLayerUpdateCount; |
| 355 int m_obligateCompositedLayerCount; // count of layer that have to be compos
ited. | 360 int m_obligateCompositedLayerCount; // count of layer that have to be compos
ited. |
| 356 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. | 361 int m_secondaryCompositedLayerCount; // count of layers that have to be comp
osited because of stacking or overlap. |
| 357 double m_obligatoryBackingStoreBytes; | 362 double m_obligatoryBackingStoreBytes; |
| 358 double m_secondaryBackingStoreBytes; | 363 double m_secondaryBackingStoreBytes; |
| 359 #endif | 364 #endif |
| 360 }; | 365 }; |
| 361 | 366 |
| 362 | 367 |
| 363 } // namespace WebCore | 368 } // namespace WebCore |
| 364 | 369 |
| 365 #endif // RenderLayerCompositor_h | 370 #endif // RenderLayerCompositor_h |
| OLD | NEW |