| 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_DRAW_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ |
| 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ | 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 // Container for properties that layers need to compute before they can be | 14 // Container for properties that layers need to compute before they can be |
| 15 // drawn. | 15 // drawn. |
| 16 template <typename LayerType> | 16 template <typename LayerType> |
| 17 struct CC_EXPORT DrawProperties { | 17 struct CC_EXPORT DrawProperties { |
| 18 DrawProperties() | 18 DrawProperties() |
| 19 : opacity(0.f), | 19 : opacity(0.f), |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // have page scale applied and others not, this may differ between layers. | 145 // have page scale applied and others not, this may differ between layers. |
| 146 float page_scale_factor; | 146 float page_scale_factor; |
| 147 | 147 |
| 148 // The device scale factor that is applied to the layer. | 148 // The device scale factor that is applied to the layer. |
| 149 float device_scale_factor; | 149 float device_scale_factor; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace cc | 152 } // namespace cc |
| 153 | 153 |
| 154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |