| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 // Returns the actual opacity, which the opacity of this layer multipled by | 185 // Returns the actual opacity, which the opacity of this layer multipled by |
| 186 // the combined opacity of the parent. | 186 // the combined opacity of the parent. |
| 187 float GetCombinedOpacity() const; | 187 float GetCombinedOpacity() const; |
| 188 | 188 |
| 189 // The layer temperature value between 0.0f and 1.0f, where a value of 0.0f | 189 // The layer temperature value between 0.0f and 1.0f, where a value of 0.0f |
| 190 // is least warm (which is the default), and a value of 1.0f is most warm. | 190 // is least warm (which is the default), and a value of 1.0f is most warm. |
| 191 float layer_temperature() const { return layer_temperature_; } | 191 float layer_temperature() const { return layer_temperature_; } |
| 192 void SetLayerTemperature(float value); | 192 void SetLayerTemperature(float value); |
| 193 | 193 |
| 194 // Returns the target color temperature if animator is running, or the current |
| 195 // temperature otherwise. |
| 196 float GetTargetTemperature() const; |
| 197 |
| 194 // Blur pixels by this amount in anything below the layer and visible through | 198 // Blur pixels by this amount in anything below the layer and visible through |
| 195 // the layer. | 199 // the layer. |
| 196 int background_blur() const { return background_blur_radius_; } | 200 int background_blur() const { return background_blur_radius_; } |
| 197 void SetBackgroundBlur(int blur_radius); | 201 void SetBackgroundBlur(int blur_radius); |
| 198 | 202 |
| 199 // Saturate all pixels of this layer by this amount. | 203 // Saturate all pixels of this layer by this amount. |
| 200 // This effect will get "combined" with the inverted, | 204 // This effect will get "combined" with the inverted, |
| 201 // brightness and grayscale setting. | 205 // brightness and grayscale setting. |
| 202 float layer_saturation() const { return layer_saturation_; } | 206 float layer_saturation() const { return layer_saturation_; } |
| 203 void SetLayerSaturation(float saturation); | 207 void SetLayerSaturation(float saturation); |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 572 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 569 // or SetTextureMailbox was called. | 573 // or SetTextureMailbox was called. |
| 570 gfx::Size frame_size_in_dip_; | 574 gfx::Size frame_size_in_dip_; |
| 571 | 575 |
| 572 DISALLOW_COPY_AND_ASSIGN(Layer); | 576 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 573 }; | 577 }; |
| 574 | 578 |
| 575 } // namespace ui | 579 } // namespace ui |
| 576 | 580 |
| 577 #endif // UI_COMPOSITOR_LAYER_H_ | 581 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |