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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 bool needs_push_properties() const { return needs_push_properties_; } | 527 bool needs_push_properties() const { return needs_push_properties_; } |
528 bool descendant_needs_push_properties() const { | 528 bool descendant_needs_push_properties() const { |
529 return num_dependents_need_push_properties_ > 0; | 529 return num_dependents_need_push_properties_ > 0; |
530 } | 530 } |
531 | 531 |
532 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); | 532 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); |
533 | 533 |
534 virtual void SetDebugInfo( | 534 virtual void SetDebugInfo( |
535 scoped_refptr<base::debug::ConvertableToTraceFormat> other); | 535 scoped_refptr<base::debug::ConvertableToTraceFormat> other); |
536 | 536 |
| 537 bool IsDrawnRenderSurfaceLayerListMember() const; |
| 538 |
537 protected: | 539 protected: |
538 LayerImpl(LayerTreeImpl* layer_impl, int id); | 540 LayerImpl(LayerTreeImpl* layer_impl, int id); |
539 | 541 |
540 // Get the color and size of the layer's debug border. | 542 // Get the color and size of the layer's debug border. |
541 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 543 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
542 | 544 |
543 void AppendDebugBorderQuad(QuadSink* quad_sink, | 545 void AppendDebugBorderQuad(QuadSink* quad_sink, |
544 const SharedQuadState* shared_quad_state, | 546 const SharedQuadState* shared_quad_state, |
545 AppendQuadsData* append_quads_data) const; | 547 AppendQuadsData* append_quads_data) const; |
546 void AppendDebugBorderQuad(QuadSink* quad_sink, | 548 void AppendDebugBorderQuad(QuadSink* quad_sink, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 DrawProperties<LayerImpl> draw_properties_; | 685 DrawProperties<LayerImpl> draw_properties_; |
684 | 686 |
685 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 687 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
686 | 688 |
687 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 689 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
688 }; | 690 }; |
689 | 691 |
690 } // namespace cc | 692 } // namespace cc |
691 | 693 |
692 #endif // CC_LAYERS_LAYER_IMPL_H_ | 694 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |