Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 | 197 |
| 198 void SetContentsOpaque(bool opaque); | 198 void SetContentsOpaque(bool opaque); |
| 199 bool contents_opaque() const { return contents_opaque_; } | 199 bool contents_opaque() const { return contents_opaque_; } |
| 200 | 200 |
| 201 float Opacity() const; | 201 float Opacity() const; |
| 202 const gfx::Transform& Transform() const; | 202 const gfx::Transform& Transform() const; |
| 203 | 203 |
| 204 void SetElementId(ElementId element_id); | 204 void SetElementId(ElementId element_id); |
| 205 ElementId element_id() const { return element_id_; } | 205 ElementId element_id() const { return element_id_; } |
| 206 | 206 |
| 207 void SetFiltersOrigin(const gfx::PointF& filters_origin); | |
| 208 gfx::PointF filters_origin() const { return filters_origin_; } | |
| 209 | |
| 207 void SetMutableProperties(uint32_t properties); | 210 void SetMutableProperties(uint32_t properties); |
| 208 uint32_t mutable_properties() const { return mutable_properties_; } | 211 uint32_t mutable_properties() const { return mutable_properties_; } |
| 209 | 212 |
| 210 void set_draw_blend_mode(SkXfermode::Mode blend_mode) { | 213 void set_draw_blend_mode(SkXfermode::Mode blend_mode) { |
| 211 draw_blend_mode_ = blend_mode; | 214 draw_blend_mode_ = blend_mode; |
| 212 } | 215 } |
| 213 SkXfermode::Mode draw_blend_mode() const { return draw_blend_mode_; } | 216 SkXfermode::Mode draw_blend_mode() const { return draw_blend_mode_; } |
| 214 | 217 |
| 215 void SetPosition(const gfx::PointF& position); | 218 void SetPosition(const gfx::PointF& position); |
| 216 gfx::PointF position() const { return position_; } | 219 gfx::PointF position() const { return position_; } |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 570 PerformanceProperties<LayerImpl> performance_properties_; | 573 PerformanceProperties<LayerImpl> performance_properties_; |
| 571 | 574 |
| 572 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 575 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 573 owned_debug_info_; | 576 owned_debug_info_; |
| 574 base::trace_event::ConvertableToTraceFormat* debug_info_; | 577 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 575 std::unique_ptr<RenderSurfaceImpl> render_surface_; | 578 std::unique_ptr<RenderSurfaceImpl> render_surface_; |
| 576 | 579 |
| 577 bool scrolls_drawn_descendant_ : 1; | 580 bool scrolls_drawn_descendant_ : 1; |
| 578 bool has_will_change_transform_hint_ : 1; | 581 bool has_will_change_transform_hint_ : 1; |
| 579 bool needs_push_properties_ : 1; | 582 bool needs_push_properties_ : 1; |
| 583 gfx::PointF filters_origin_; | |
|
ajuma
2016/08/29 20:28:43
Please add this to LayerImplTestProperties instead
Stephen White
2016/08/29 21:10:54
Done.
| |
| 580 | 584 |
| 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 585 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 582 }; | 586 }; |
| 583 | 587 |
| 584 } // namespace cc | 588 } // namespace cc |
| 585 | 589 |
| 586 #endif // CC_LAYERS_LAYER_IMPL_H_ | 590 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |