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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 void Set3dSortingContextId(int id); | 533 void Set3dSortingContextId(int id); |
534 int sorting_context_id() { return sorting_context_id_; } | 534 int sorting_context_id() { return sorting_context_id_; } |
535 | 535 |
536 protected: | 536 protected: |
537 LayerImpl(LayerTreeImpl* layer_impl, int id); | 537 LayerImpl(LayerTreeImpl* layer_impl, int id); |
538 | 538 |
539 // Get the color and size of the layer's debug border. | 539 // Get the color and size of the layer's debug border. |
540 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 540 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
541 | 541 |
542 void AppendDebugBorderQuad(QuadSink* quad_sink, | 542 void AppendDebugBorderQuad(QuadSink* quad_sink, |
| 543 const gfx::Size& content_bounds, |
543 const SharedQuadState* shared_quad_state, | 544 const SharedQuadState* shared_quad_state, |
544 AppendQuadsData* append_quads_data) const; | 545 AppendQuadsData* append_quads_data) const; |
545 void AppendDebugBorderQuad(QuadSink* quad_sink, | 546 void AppendDebugBorderQuad(QuadSink* quad_sink, |
| 547 const gfx::Size& content_bounds, |
546 const SharedQuadState* shared_quad_state, | 548 const SharedQuadState* shared_quad_state, |
547 AppendQuadsData* append_quads_data, | 549 AppendQuadsData* append_quads_data, |
548 SkColor color, | 550 SkColor color, |
549 float width) const; | 551 float width) const; |
550 | 552 |
551 virtual void AsValueInto(base::DictionaryValue* dict) const; | 553 virtual void AsValueInto(base::DictionaryValue* dict) const; |
552 | 554 |
553 void NoteLayerPropertyChanged(); | 555 void NoteLayerPropertyChanged(); |
554 void NoteLayerPropertyChangedForSubtree(); | 556 void NoteLayerPropertyChangedForSubtree(); |
555 | 557 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 DrawProperties<LayerImpl> draw_properties_; | 687 DrawProperties<LayerImpl> draw_properties_; |
686 | 688 |
687 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 689 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
688 | 690 |
689 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 691 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
690 }; | 692 }; |
691 | 693 |
692 } // namespace cc | 694 } // namespace cc |
693 | 695 |
694 #endif // CC_LAYERS_LAYER_IMPL_H_ | 696 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |