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 #ifndef CC_LAYER_H_ | 5 #ifndef CC_LAYER_H_ |
6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
7 | 7 |
8 #include <public/WebFilterOperations.h> | 8 #include <public/WebFilterOperations.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 302 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
303 | 303 |
304 protected: | 304 protected: |
305 friend class LayerImpl; | 305 friend class LayerImpl; |
306 friend class TreeSynchronizer; | 306 friend class TreeSynchronizer; |
307 virtual ~Layer(); | 307 virtual ~Layer(); |
308 | 308 |
309 Layer(); | 309 Layer(); |
310 | 310 |
311 void setNeedsCommit(); | 311 void setNeedsCommit(); |
| 312 void setNeedsFullTreeSync(); |
312 | 313 |
313 // This flag is set when layer need repainting/updating. | 314 // This flag is set when layer need repainting/updating. |
314 bool m_needsDisplay; | 315 bool m_needsDisplay; |
315 | 316 |
316 // Tracks whether this layer may have changed stacking order with its siblin
gs. | 317 // Tracks whether this layer may have changed stacking order with its siblin
gs. |
317 bool m_stackingOrderChanged; | 318 bool m_stackingOrderChanged; |
318 | 319 |
319 // The update rect is the region of the compositor resource that was actuall
y updated by the compositor. | 320 // The update rect is the region of the compositor resource that was actuall
y updated by the compositor. |
320 // For layers that may do updating outside the compositor's control (i.e. pl
ugin layers), this information | 321 // For layers that may do updating outside the compositor's control (i.e. pl
ugin layers), this information |
321 // is not available and the update rect will remain empty. | 322 // is not available and the update rect will remain empty. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 423 |
423 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 424 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
424 WebKit::WebLayerScrollClient* m_layerScrollClient; | 425 WebKit::WebLayerScrollClient* m_layerScrollClient; |
425 }; | 426 }; |
426 | 427 |
427 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 428 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
428 | 429 |
429 } // namespace cc | 430 } // namespace cc |
430 | 431 |
431 #endif // CC_LAYER_H_ | 432 #endif // CC_LAYER_H_ |
OLD | NEW |