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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 void SetContentBounds(const gfx::Size& content_bounds); | 345 void SetContentBounds(const gfx::Size& content_bounds); |
346 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } | 346 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } |
347 | 347 |
348 float contents_scale_x() const { return draw_properties_.contents_scale_x; } | 348 float contents_scale_x() const { return draw_properties_.contents_scale_x; } |
349 float contents_scale_y() const { return draw_properties_.contents_scale_y; } | 349 float contents_scale_y() const { return draw_properties_.contents_scale_y; } |
350 void SetContentsScale(float contents_scale_x, float contents_scale_y); | 350 void SetContentsScale(float contents_scale_x, float contents_scale_y); |
351 | 351 |
352 virtual void CalculateContentsScale(float ideal_contents_scale, | 352 virtual void CalculateContentsScale(float ideal_contents_scale, |
353 float device_scale_factor, | 353 float device_scale_factor, |
354 float page_scale_factor, | 354 float page_scale_factor, |
| 355 float maximum_animation_contents_scale, |
355 bool animating_transform_to_screen, | 356 bool animating_transform_to_screen, |
356 float* contents_scale_x, | 357 float* contents_scale_x, |
357 float* contents_scale_y, | 358 float* contents_scale_y, |
358 gfx::Size* content_bounds); | 359 gfx::Size* content_bounds); |
359 | 360 |
360 void SetScrollOffsetDelegate( | 361 void SetScrollOffsetDelegate( |
361 LayerScrollOffsetDelegate* scroll_offset_delegate); | 362 LayerScrollOffsetDelegate* scroll_offset_delegate); |
362 bool IsExternalFlingActive() const; | 363 bool IsExternalFlingActive() const; |
363 | 364 |
364 void SetScrollOffset(const gfx::Vector2d& scroll_offset); | 365 void SetScrollOffset(const gfx::Vector2d& scroll_offset); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 DrawProperties<LayerImpl> draw_properties_; | 667 DrawProperties<LayerImpl> draw_properties_; |
667 | 668 |
668 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 669 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
669 | 670 |
670 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 671 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
671 }; | 672 }; |
672 | 673 |
673 } // namespace cc | 674 } // namespace cc |
674 | 675 |
675 #endif // CC_LAYERS_LAYER_IMPL_H_ | 676 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |