| 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 <public/WebFilterOperations.h> | 8 #include <public/WebFilterOperations.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 // Get the color and size of the layer's debug border. | 287 // Get the color and size of the layer's debug border. |
| 288 virtual void getDebugBorderProperties(SkColor*, float* width) const; | 288 virtual void getDebugBorderProperties(SkColor*, float* width) const; |
| 289 | 289 |
| 290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; | 290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat
a&) const; |
| 291 | 291 |
| 292 virtual void dumpLayerProperties(std::string*, int indent) const; | 292 virtual void dumpLayerProperties(std::string*, int indent) const; |
| 293 static std::string indentString(int indent); | 293 static std::string indentString(int indent); |
| 294 | 294 |
| 295 private: | 295 private: |
| 296 scoped_ptr<LayerImpl> takeMaskLayer(); |
| 297 scoped_ptr<LayerImpl> takeReplicaLayer(); |
| 298 |
| 296 void setParent(LayerImpl* parent) { m_parent = parent; } | 299 void setParent(LayerImpl* parent) { m_parent = parent; } |
| 297 friend class TreeSynchronizer; | 300 friend class TreeSynchronizer; |
| 298 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. | 301 void clearChildList(); // Warning: This does not preserve tree structure inv
ariants and so is only exposed to the tree synchronizer. |
| 299 | 302 |
| 300 void noteLayerSurfacePropertyChanged(); | 303 void noteLayerSurfacePropertyChanged(); |
| 301 void noteLayerPropertyChanged(); | 304 void noteLayerPropertyChanged(); |
| 302 void noteLayerPropertyChangedForSubtree(); | 305 void noteLayerPropertyChangedForSubtree(); |
| 303 | 306 |
| 304 // Note carefully this does not affect the current layer. | 307 // Note carefully this does not affect the current layer. |
| 305 void noteLayerPropertyChangedForDescendants(); | 308 void noteLayerPropertyChangedForDescendants(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Group of properties that need to be computed based on the layer tree | 401 // Group of properties that need to be computed based on the layer tree |
| 399 // hierarchy before layers can be drawn. | 402 // hierarchy before layers can be drawn. |
| 400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 403 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
| 401 | 404 |
| 402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 405 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 403 }; | 406 }; |
| 404 | 407 |
| 405 } | 408 } |
| 406 | 409 |
| 407 #endif // CC_LAYER_IMPL_H_ | 410 #endif // CC_LAYER_IMPL_H_ |
| OLD | NEW |