| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Return the target grayscale if animator is running, or the current | 197 // Return the target grayscale if animator is running, or the current |
| 198 // grayscale otherwise. | 198 // grayscale otherwise. |
| 199 float GetTargetGrayscale() const; | 199 float GetTargetGrayscale() const; |
| 200 | 200 |
| 201 // Zoom the background by a factor of |zoom|. The effect is blended along the | 201 // Zoom the background by a factor of |zoom|. The effect is blended along the |
| 202 // edge across |inset| pixels. | 202 // edge across |inset| pixels. |
| 203 void SetBackgroundZoom(float zoom, int inset); | 203 void SetBackgroundZoom(float zoom, int inset); |
| 204 | 204 |
| 205 // Set the shape of this layer. | 205 // Set the shape of this layer. |
| 206 SkRegion* alpha_shape() const; |
| 206 void SetAlphaShape(scoped_ptr<SkRegion> region); | 207 void SetAlphaShape(scoped_ptr<SkRegion> region); |
| 207 | 208 |
| 208 // Invert the layer. | 209 // Invert the layer. |
| 209 bool layer_inverted() const { return layer_inverted_; } | 210 bool layer_inverted() const { return layer_inverted_; } |
| 210 void SetLayerInverted(bool inverted); | 211 void SetLayerInverted(bool inverted); |
| 211 | 212 |
| 212 // Return the target opacity if animator is running, or the current opacity | 213 // Return the target opacity if animator is running, or the current opacity |
| 213 // otherwise. | 214 // otherwise. |
| 214 float GetTargetOpacity() const; | 215 float GetTargetOpacity() const; |
| 215 | 216 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 513 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 513 // or SetTextureMailbox was called. | 514 // or SetTextureMailbox was called. |
| 514 gfx::Size frame_size_in_dip_; | 515 gfx::Size frame_size_in_dip_; |
| 515 | 516 |
| 516 DISALLOW_COPY_AND_ASSIGN(Layer); | 517 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 517 }; | 518 }; |
| 518 | 519 |
| 519 } // namespace ui | 520 } // namespace ui |
| 520 | 521 |
| 521 #endif // UI_COMPOSITOR_LAYER_H_ | 522 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |