| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); | 560 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); |
| 561 | 561 |
| 562 virtual void SetDebugInfo( | 562 virtual void SetDebugInfo( |
| 563 scoped_refptr<base::debug::ConvertableToTraceFormat> other); | 563 scoped_refptr<base::debug::ConvertableToTraceFormat> other); |
| 564 | 564 |
| 565 bool IsDrawnRenderSurfaceLayerListMember() const; | 565 bool IsDrawnRenderSurfaceLayerListMember() const; |
| 566 | 566 |
| 567 void Set3dSortingContextId(int id); | 567 void Set3dSortingContextId(int id); |
| 568 int sorting_context_id() { return sorting_context_id_; } | 568 int sorting_context_id() { return sorting_context_id_; } |
| 569 | 569 |
| 570 // TODO(vollick): These is temporary and will be removed as soon as render |
| 571 // surface determinations are moved out of CDP. They only exist because |
| 572 // certain logic depends on whether or not a layer would render to a separate |
| 573 // surface, but CDP destroys surfaces and targets it doesn't need, so without |
| 574 // this boolean, this is impossible to determine after the fact without |
| 575 // wastefully recomputing it. |
| 576 void SetHasRenderSurface(bool value) {} |
| 577 |
| 570 protected: | 578 protected: |
| 571 LayerImpl(LayerTreeImpl* layer_impl, int id); | 579 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 572 | 580 |
| 573 // Get the color and size of the layer's debug border. | 581 // Get the color and size of the layer's debug border. |
| 574 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 582 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
| 575 | 583 |
| 576 void AppendDebugBorderQuad(RenderPass* render_pass, | 584 void AppendDebugBorderQuad(RenderPass* render_pass, |
| 577 const gfx::Size& content_bounds, | 585 const gfx::Size& content_bounds, |
| 578 const SharedQuadState* shared_quad_state, | 586 const SharedQuadState* shared_quad_state, |
| 579 AppendQuadsData* append_quads_data) const; | 587 AppendQuadsData* append_quads_data) const; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 DrawProperties<LayerImpl> draw_properties_; | 729 DrawProperties<LayerImpl> draw_properties_; |
| 722 | 730 |
| 723 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 731 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 724 | 732 |
| 725 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 733 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 726 }; | 734 }; |
| 727 | 735 |
| 728 } // namespace cc | 736 } // namespace cc |
| 729 | 737 |
| 730 #endif // CC_LAYERS_LAYER_IMPL_H_ | 738 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |