| 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 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 419 |
| 420 void AsValueInto(base::DictionaryValue* dict) const; | 420 void AsValueInto(base::DictionaryValue* dict) const; |
| 421 | 421 |
| 422 void NoteLayerSurfacePropertyChanged(); | 422 void NoteLayerSurfacePropertyChanged(); |
| 423 void NoteLayerPropertyChanged(); | 423 void NoteLayerPropertyChanged(); |
| 424 void NoteLayerPropertyChangedForSubtree(); | 424 void NoteLayerPropertyChangedForSubtree(); |
| 425 | 425 |
| 426 // Note carefully this does not affect the current layer. | 426 // Note carefully this does not affect the current layer. |
| 427 void NoteLayerPropertyChangedForDescendants(); | 427 void NoteLayerPropertyChangedForDescendants(); |
| 428 | 428 |
| 429 bool CanDrawDirectlyToBackbuffer() const; |
| 430 |
| 429 private: | 431 private: |
| 430 void UpdateScrollbarPositions(); | 432 void UpdateScrollbarPositions(); |
| 431 | 433 |
| 432 virtual const char* LayerTypeAsString() const; | 434 virtual const char* LayerTypeAsString() const; |
| 433 | 435 |
| 434 void DumpLayer(std::string* str, int indent) const; | 436 void DumpLayer(std::string* str, int indent) const; |
| 435 | 437 |
| 436 // Properties internal to LayerImpl | 438 // Properties internal to LayerImpl |
| 437 LayerImpl* parent_; | 439 LayerImpl* parent_; |
| 438 OwnedLayerImplList children_; | 440 OwnedLayerImplList children_; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // Group of properties that need to be computed based on the layer tree | 534 // Group of properties that need to be computed based on the layer tree |
| 533 // hierarchy before layers can be drawn. | 535 // hierarchy before layers can be drawn. |
| 534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 536 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 535 | 537 |
| 536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 538 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 537 }; | 539 }; |
| 538 | 540 |
| 539 } // namespace cc | 541 } // namespace cc |
| 540 | 542 |
| 541 #endif // CC_LAYERS_LAYER_IMPL_H_ | 543 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |