| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #ifndef LayerChromium_h | 6 #ifndef LayerChromium_h |
| 7 #define LayerChromium_h | 7 #define LayerChromium_h |
| 8 | 8 |
| 9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
| 10 | 10 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() { return 0; } | 263 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() { return 0; } |
| 264 | 264 |
| 265 protected: | 265 protected: |
| 266 friend class CCLayerImpl; | 266 friend class CCLayerImpl; |
| 267 friend class TreeSynchronizer; | 267 friend class TreeSynchronizer; |
| 268 | 268 |
| 269 LayerChromium(); | 269 LayerChromium(); |
| 270 | 270 |
| 271 void setNeedsCommit(); | 271 void setNeedsCommit(); |
| 272 | 272 |
| 273 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect); |
| 274 |
| 273 // This flag is set when layer need repainting/updating. | 275 // This flag is set when layer need repainting/updating. |
| 274 bool m_needsDisplay; | 276 bool m_needsDisplay; |
| 275 | 277 |
| 276 // Tracks whether this layer may have changed stacking order with its siblin
gs. | 278 // Tracks whether this layer may have changed stacking order with its siblin
gs. |
| 277 bool m_stackingOrderChanged; | 279 bool m_stackingOrderChanged; |
| 278 | 280 |
| 279 // The update rect is the region of the compositor resource that was actuall
y updated by the compositor. | 281 // The update rect is the region of the compositor resource that was actuall
y updated by the compositor. |
| 280 // For layers that may do updating outside the compositor's control (i.e. pl
ugin layers), this information | 282 // For layers that may do updating outside the compositor's control (i.e. pl
ugin layers), this information |
| 281 // is not available and the update rect will remain empty. | 283 // is not available and the update rect will remain empty. |
| 282 // Note this rect is in layer space (not content space). | 284 // Note this rect is in layer space (not content space). |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 374 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
| 373 WebKit::WebLayerScrollClient* m_layerScrollClient; | 375 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 374 }; | 376 }; |
| 375 | 377 |
| 376 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); | 378 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr
omium> >::iterator, void*); |
| 377 | 379 |
| 378 } | 380 } |
| 379 #endif // USE(ACCELERATED_COMPOSITING) | 381 #endif // USE(ACCELERATED_COMPOSITING) |
| 380 | 382 |
| 381 #endif | 383 #endif |
| OLD | NEW |