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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 // The following are shortcut accessors to get various information from | 317 // The following are shortcut accessors to get various information from |
318 // draw_properties_ | 318 // draw_properties_ |
319 const gfx::Transform& draw_transform() const { | 319 const gfx::Transform& draw_transform() const { |
320 return draw_properties_.target_space_transform; | 320 return draw_properties_.target_space_transform; |
321 } | 321 } |
322 const gfx::Transform& screen_space_transform() const { | 322 const gfx::Transform& screen_space_transform() const { |
323 return draw_properties_.screen_space_transform; | 323 return draw_properties_.screen_space_transform; |
324 } | 324 } |
325 float draw_opacity() const { return draw_properties_.opacity; } | 325 float draw_opacity() const { return draw_properties_.opacity; } |
| 326 SkXfermode::Mode draw_blend_mode() const { |
| 327 return draw_properties_.blend_mode; |
| 328 } |
326 bool draw_opacity_is_animating() const { | 329 bool draw_opacity_is_animating() const { |
327 return draw_properties_.opacity_is_animating; | 330 return draw_properties_.opacity_is_animating; |
328 } | 331 } |
329 bool draw_transform_is_animating() const { | 332 bool draw_transform_is_animating() const { |
330 return draw_properties_.target_space_transform_is_animating; | 333 return draw_properties_.target_space_transform_is_animating; |
331 } | 334 } |
332 bool screen_space_transform_is_animating() const { | 335 bool screen_space_transform_is_animating() const { |
333 return draw_properties_.screen_space_transform_is_animating; | 336 return draw_properties_.screen_space_transform_is_animating; |
334 } | 337 } |
335 bool screen_space_opacity_is_animating() const { | 338 bool screen_space_opacity_is_animating() const { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 DrawProperties<LayerImpl> draw_properties_; | 721 DrawProperties<LayerImpl> draw_properties_; |
719 | 722 |
720 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 723 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
721 | 724 |
722 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 725 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
723 }; | 726 }; |
724 | 727 |
725 } // namespace cc | 728 } // namespace cc |
726 | 729 |
727 #endif // CC_LAYERS_LAYER_IMPL_H_ | 730 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |