| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_CONTENTS_SCALING_LAYER_H_ | 5 #ifndef CC_LAYERS_CONTENTS_SCALING_LAYER_H_ |
| 6 #define CC_LAYERS_CONTENTS_SCALING_LAYER_H_ | 6 #define CC_LAYERS_CONTENTS_SCALING_LAYER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 ContentsScalingLayer(); | 30 ContentsScalingLayer(); |
| 31 virtual ~ContentsScalingLayer(); | 31 virtual ~ContentsScalingLayer(); |
| 32 | 32 |
| 33 gfx::Size ComputeContentBoundsForScale(float scale_x, float scale_y) const; | 33 gfx::Size ComputeContentBoundsForScale(float scale_x, float scale_y) const; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 float last_update_contents_scale_x_; | 36 float last_update_contents_scale_x_; |
| 37 float last_update_contents_scale_y_; | 37 float last_update_contents_scale_y_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ContentsScalingLayer); |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 } // namespace cc | 42 } // namespace cc |
| 41 | 43 |
| 42 #endif // CC_LAYERS_CONTENTS_SCALING_LAYER_H__ | 44 #endif // CC_LAYERS_CONTENTS_SCALING_LAYER_H__ |
| OLD | NEW |