OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 429 |
430 virtual void AsValueInto(base::DictionaryValue* dict) const; | 430 virtual void AsValueInto(base::DictionaryValue* dict) const; |
431 | 431 |
432 void NoteLayerSurfacePropertyChanged(); | 432 void NoteLayerSurfacePropertyChanged(); |
433 void NoteLayerPropertyChanged(); | 433 void NoteLayerPropertyChanged(); |
434 void NoteLayerPropertyChangedForSubtree(); | 434 void NoteLayerPropertyChangedForSubtree(); |
435 | 435 |
436 // Note carefully this does not affect the current layer. | 436 // Note carefully this does not affect the current layer. |
437 void NoteLayerPropertyChangedForDescendants(); | 437 void NoteLayerPropertyChangedForDescendants(); |
438 | 438 |
| 439 bool CanDrawDirectlyToBackbuffer() const; |
| 440 |
439 private: | 441 private: |
440 void UpdateScrollbarPositions(); | 442 void UpdateScrollbarPositions(); |
441 | 443 |
442 virtual const char* LayerTypeAsString() const; | 444 virtual const char* LayerTypeAsString() const; |
443 | 445 |
444 void DumpLayer(std::string* str, int indent) const; | 446 void DumpLayer(std::string* str, int indent) const; |
445 | 447 |
446 // Properties internal to LayerImpl | 448 // Properties internal to LayerImpl |
447 LayerImpl* parent_; | 449 LayerImpl* parent_; |
448 OwnedLayerImplList children_; | 450 OwnedLayerImplList children_; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // Group of properties that need to be computed based on the layer tree | 546 // Group of properties that need to be computed based on the layer tree |
545 // hierarchy before layers can be drawn. | 547 // hierarchy before layers can be drawn. |
546 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 548 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
547 | 549 |
548 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 550 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
549 }; | 551 }; |
550 | 552 |
551 } // namespace cc | 553 } // namespace cc |
552 | 554 |
553 #endif // CC_LAYERS_LAYER_IMPL_H_ | 555 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |