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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 protected: | 418 protected: |
419 LayerImpl(LayerTreeImpl* layer_impl, int id); | 419 LayerImpl(LayerTreeImpl* layer_impl, int id); |
420 | 420 |
421 // Get the color and size of the layer's debug border. | 421 // Get the color and size of the layer's debug border. |
422 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 422 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
423 | 423 |
424 void AppendDebugBorderQuad(QuadSink* quad_sink, | 424 void AppendDebugBorderQuad(QuadSink* quad_sink, |
425 const SharedQuadState* shared_quad_state, | 425 const SharedQuadState* shared_quad_state, |
426 AppendQuadsData* append_quads_data) const; | 426 AppendQuadsData* append_quads_data) const; |
| 427 void AppendDebugBorderQuad(QuadSink* quad_sink, |
| 428 const SharedQuadState* shared_quad_state, |
| 429 AppendQuadsData* append_quads_data, |
| 430 SkColor color, |
| 431 float width) const; |
427 | 432 |
428 virtual void DumpLayerProperties(std::string* str, int indent) const; | 433 virtual void DumpLayerProperties(std::string* str, int indent) const; |
429 static std::string IndentString(int indent); | 434 static std::string IndentString(int indent); |
430 | 435 |
431 virtual void AsValueInto(base::DictionaryValue* dict) const; | 436 virtual void AsValueInto(base::DictionaryValue* dict) const; |
432 | 437 |
433 void NoteLayerSurfacePropertyChanged(); | 438 void NoteLayerSurfacePropertyChanged(); |
434 void NoteLayerPropertyChanged(); | 439 void NoteLayerPropertyChanged(); |
435 void NoteLayerPropertyChangedForSubtree(); | 440 void NoteLayerPropertyChangedForSubtree(); |
436 | 441 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 // Group of properties that need to be computed based on the layer tree | 550 // Group of properties that need to be computed based on the layer tree |
546 // hierarchy before layers can be drawn. | 551 // hierarchy before layers can be drawn. |
547 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 552 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
548 | 553 |
549 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 554 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
550 }; | 555 }; |
551 | 556 |
552 } // namespace cc | 557 } // namespace cc |
553 | 558 |
554 #endif // CC_LAYERS_LAYER_IMPL_H_ | 559 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |