| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 virtual Region visibleContentOpaqueRegion() const; | 281 virtual Region visibleContentOpaqueRegion() const; |
| 282 | 282 |
| 283 virtual ScrollbarLayer* toScrollbarLayer(); | 283 virtual ScrollbarLayer* toScrollbarLayer(); |
| 284 | 284 |
| 285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
| 286 | 286 |
| 287 // In impl-side painting, this returns true if this layer type is not | 287 // In impl-side painting, this returns true if this layer type is not |
| 288 // compatible with the main thread running freely, such as a double-buffered | 288 // compatible with the main thread running freely, such as a double-buffered |
| 289 // canvas that doesn't want to be triple-buffered across all three trees. | 289 // canvas that doesn't want to be triple-buffered across all three trees. |
| 290 virtual bool blocksPendingCommit() const; | 290 virtual bool blocksPendingCommit() const; |
| 291 // Returns true if anything in this tree blocksPendingCommit. |
| 292 bool blocksPendingCommitRecursive() const; |
| 291 | 293 |
| 292 protected: | 294 protected: |
| 293 friend class LayerImpl; | 295 friend class LayerImpl; |
| 294 friend class TreeSynchronizer; | 296 friend class TreeSynchronizer; |
| 295 virtual ~Layer(); | 297 virtual ~Layer(); |
| 296 | 298 |
| 297 Layer(); | 299 Layer(); |
| 298 | 300 |
| 299 void setNeedsCommit(); | 301 void setNeedsCommit(); |
| 300 void setNeedsFullTreeSync(); | 302 void setNeedsFullTreeSync(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 WebKit::WebLayerScrollClient* m_layerScrollClient; | 403 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 402 | 404 |
| 403 DrawProperties<Layer, RenderSurface> m_drawProperties; | 405 DrawProperties<Layer, RenderSurface> m_drawProperties; |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 408 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
| 407 | 409 |
| 408 } // namespace cc | 410 } // namespace cc |
| 409 | 411 |
| 410 #endif // CC_LAYER_H_ | 412 #endif // CC_LAYER_H_ |
| OLD | NEW |