| 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_LAYER_IMPL_H_ | 5 #ifndef CC_LAYER_IMPL_H_ |
| 6 #define CC_LAYER_IMPL_H_ | 6 #define CC_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 // Get the color and size of the layer's debug border. | 317 // Get the color and size of the layer's debug border. |
| 318 virtual void getDebugBorderProperties(SkColor*, float* width) const; | 318 virtual void getDebugBorderProperties(SkColor*, float* width) const; |
| 319 | 319 |
| 320 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; | 320 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; |
| 321 | 321 |
| 322 virtual void dumpLayerProperties(std::string*, int indent) const; | 322 virtual void dumpLayerProperties(std::string*, int indent) const; |
| 323 static std::string indentString(int indent); | 323 static std::string indentString(int indent); |
| 324 | 324 |
| 325 void AsValueInto(base::DictionaryValue* dict) const; | 325 void AsValueInto(base::DictionaryValue* dict) const; |
| 326 | 326 |
| 327 private: | |
| 328 void updateScrollbarPositions(); | |
| 329 | |
| 330 void noteLayerSurfacePropertyChanged(); | 327 void noteLayerSurfacePropertyChanged(); |
| 331 void noteLayerPropertyChanged(); | 328 void noteLayerPropertyChanged(); |
| 332 void noteLayerPropertyChangedForSubtree(); | 329 void noteLayerPropertyChangedForSubtree(); |
| 333 | 330 |
| 334 // Note carefully this does not affect the current layer. | 331 // Note carefully this does not affect the current layer. |
| 335 void noteLayerPropertyChangedForDescendants(); | 332 void noteLayerPropertyChangedForDescendants(); |
| 336 | 333 |
| 334 private: |
| 335 void updateScrollbarPositions(); |
| 336 |
| 337 virtual const char* layerTypeAsString() const; | 337 virtual const char* layerTypeAsString() const; |
| 338 | 338 |
| 339 void dumpLayer(std::string*, int indent) const; | 339 void dumpLayer(std::string*, int indent) const; |
| 340 | 340 |
| 341 // Properties internal to LayerImpl | 341 // Properties internal to LayerImpl |
| 342 LayerImpl* m_parent; | 342 LayerImpl* m_parent; |
| 343 LayerList m_children; | 343 LayerList m_children; |
| 344 // m_maskLayer can be temporarily stolen during tree sync, we need this ID t
o confirm newly assigned layer is still the previous one | 344 // m_maskLayer can be temporarily stolen during tree sync, we need this ID t
o confirm newly assigned layer is still the previous one |
| 345 int m_maskLayerId; | 345 int m_maskLayerId; |
| 346 scoped_ptr<LayerImpl> m_maskLayer; | 346 scoped_ptr<LayerImpl> m_maskLayer; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 // Group of properties that need to be computed based on the layer tree | 432 // Group of properties that need to be computed based on the layer tree |
| 433 // hierarchy before layers can be drawn. | 433 // hierarchy before layers can be drawn. |
| 434 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 434 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
| 435 | 435 |
| 436 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 436 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 437 }; | 437 }; |
| 438 | 438 |
| 439 } | 439 } |
| 440 | 440 |
| 441 #endif // CC_LAYER_IMPL_H_ | 441 #endif // CC_LAYER_IMPL_H_ |
| OLD | NEW |