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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // Counter that tracks what index the next RenderLayer would be if it ge
ts squashed to the current squashing layer. | 230 // Counter that tracks what index the next RenderLayer would be if it ge
ts squashed to the current squashing layer. |
231 size_t nextSquashedLayerIndex; | 231 size_t nextSquashedLayerIndex; |
232 }; | 232 }; |
233 | 233 |
234 CompositingStateTransitionType computeCompositedLayerUpdate(const RenderLaye
r*); | 234 CompositingStateTransitionType computeCompositedLayerUpdate(const RenderLaye
r*); |
235 // Make updates to the layer based on viewport-constrained properties such a
s position:fixed. This can in turn affect | 235 // Make updates to the layer based on viewport-constrained properties such a
s position:fixed. This can in turn affect |
236 // compositing. | 236 // compositing. |
237 bool updateLayerIfViewportConstrained(RenderLayer*); | 237 bool updateLayerIfViewportConstrained(RenderLayer*); |
238 | 238 |
239 // GraphicsLayerClient implementation | 239 // GraphicsLayerClient implementation |
240 virtual void notifyAnimationStarted(const GraphicsLayer*, double, double) OV
ERRIDE { } | 240 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE {
} |
241 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect&) OVERRIDE; | 241 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect&) OVERRIDE; |
242 | 242 |
243 virtual bool isTrackingRepaints() const OVERRIDE; | 243 virtual bool isTrackingRepaints() const OVERRIDE; |
244 | 244 |
245 // Whether the given RL needs to paint into its own separate backing (and he
nce would need its own CompositedLayerMapping). | 245 // Whether the given RL needs to paint into its own separate backing (and he
nce would need its own CompositedLayerMapping). |
246 bool needsOwnBacking(const RenderLayer*) const; | 246 bool needsOwnBacking(const RenderLayer*) const; |
247 // Whether the layer could ever be composited. | 247 // Whether the layer could ever be composited. |
248 bool canBeComposited(const RenderLayer*) const; | 248 bool canBeComposited(const RenderLayer*) const; |
249 | 249 |
250 void updateDirectCompositingReasons(RenderLayer*); | 250 void updateDirectCompositingReasons(RenderLayer*); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 372 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
373 #if USE(RUBBER_BANDING) | 373 #if USE(RUBBER_BANDING) |
374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
375 #endif | 375 #endif |
376 }; | 376 }; |
377 | 377 |
378 | 378 |
379 } // namespace WebCore | 379 } // namespace WebCore |
380 | 380 |
381 #endif // RenderLayerCompositor_h | 381 #endif // RenderLayerCompositor_h |
OLD | NEW |