| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
| 6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 bool web_layer_is_accelerated_; | 387 bool web_layer_is_accelerated_; |
| 388 bool show_debug_borders_; | 388 bool show_debug_borders_; |
| 389 | 389 |
| 390 // If true, the layer scales the canvas and the texture with the device scale | 390 // If true, the layer scales the canvas and the texture with the device scale |
| 391 // factor as appropriate. When true, the texture size is in DIP. | 391 // factor as appropriate. When true, the texture size is in DIP. |
| 392 bool scale_content_; | 392 bool scale_content_; |
| 393 | 393 |
| 394 // A cached copy of |Compositor::device_scale_factor()|. | 394 // A cached copy of |Compositor::device_scale_factor()|. |
| 395 float device_scale_factor_; | 395 float device_scale_factor_; |
| 396 | 396 |
| 397 // The device scale factor when |texture_| is provided. This is mostly same |
| 398 // as |device_scale_factor_| itself but could be inconsistent in some special |
| 399 // cases. |
| 400 float device_scale_factor_for_texture_; |
| 401 |
| 397 DISALLOW_COPY_AND_ASSIGN(Layer); | 402 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 398 }; | 403 }; |
| 399 | 404 |
| 400 } // namespace ui | 405 } // namespace ui |
| 401 | 406 |
| 402 #endif // UI_COMPOSITOR_LAYER_H_ | 407 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |