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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 291 |
| 292 virtual bool canClipSelf() const; |
| 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(); |
301 | 303 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 WebKit::WebLayerScrollClient* m_layerScrollClient; | 404 WebKit::WebLayerScrollClient* m_layerScrollClient; |
403 | 405 |
404 DrawProperties<Layer, RenderSurface> m_drawProperties; | 406 DrawProperties<Layer, RenderSurface> m_drawProperties; |
405 }; | 407 }; |
406 | 408 |
407 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
408 | 410 |
409 } // namespace cc | 411 } // namespace cc |
410 | 412 |
411 #endif // CC_LAYER_H_ | 413 #endif // CC_LAYER_H_ |
OLD | NEW |