Chromium Code Reviews| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 | 275 |
| 276 virtual ScrollbarLayer* toScrollbarLayer(); | 276 virtual ScrollbarLayer* toScrollbarLayer(); |
| 277 | 277 |
| 278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
| 279 | 279 |
| 280 // In impl-side painting, this returns true if this layer type is not | 280 // In impl-side painting, this returns true if this layer type is not |
| 281 // compatible with the main thread running freely, such as a double-buffered | 281 // compatible with the main thread running freely, such as a double-buffered |
| 282 // canvas that doesn't want to be triple-buffered across all three trees. | 282 // canvas that doesn't want to be triple-buffered across all three trees. |
| 283 virtual bool blocksPendingCommit() const; | 283 virtual bool blocksPendingCommit() const; |
| 284 | 284 |
| 285 virtual bool CanClipSelf() const { return false; } | |
|
danakj
2012/12/15 00:02:17
We have accessors for draw properties that match t
| |
| 286 | |
| 285 protected: | 287 protected: |
| 286 friend class LayerImpl; | 288 friend class LayerImpl; |
| 287 friend class TreeSynchronizer; | 289 friend class TreeSynchronizer; |
| 288 virtual ~Layer(); | 290 virtual ~Layer(); |
| 289 | 291 |
| 290 Layer(); | 292 Layer(); |
| 291 | 293 |
| 292 void setNeedsCommit(); | 294 void setNeedsCommit(); |
| 293 void setNeedsFullTreeSync(); | 295 void setNeedsFullTreeSync(); |
| 294 | 296 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 384 WebKit::WebLayerScrollClient* m_layerScrollClient; | 386 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 385 | 387 |
| 386 DrawProperties<Layer, RenderSurface> m_drawProperties; | 388 DrawProperties<Layer, RenderSurface> m_drawProperties; |
| 387 }; | 389 }; |
| 388 | 390 |
| 389 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); | 391 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); |
| 390 | 392 |
| 391 } // namespace cc | 393 } // namespace cc |
| 392 | 394 |
| 393 #endif // CC_LAYER_H_ | 395 #endif // CC_LAYER_H_ |
| OLD | NEW |