Chromium Code Reviews| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 444 // while attached to the main layer before the main layer is deleted. | 444 // while attached to the main layer before the main layer is deleted. |
| 445 Layer* layer_mask_back_link_; | 445 Layer* layer_mask_back_link_; |
| 446 | 446 |
| 447 // The zoom factor to scale the layer by. Zooming is disabled when this is | 447 // The zoom factor to scale the layer by. Zooming is disabled when this is |
| 448 // set to 1. | 448 // set to 1. |
| 449 float zoom_; | 449 float zoom_; |
| 450 | 450 |
| 451 // Width of the border in pixels, where the scaling is blended. | 451 // Width of the border in pixels, where the scaling is blended. |
| 452 int zoom_inset_; | 452 int zoom_inset_; |
| 453 | 453 |
| 454 // Shape of the window. | 454 // The alpha shape is a region that defines the area that is visible |
| 455 // (and matches the area that accepts input events). The region is specified | |
| 456 // in DIPs, so it must be scaled by the layer's |device_scale_factor|. | |
|
danakj
2014/07/11 16:08:22
this comment seems out of date now
| |
| 455 scoped_ptr<SkRegion> alpha_shape_; | 457 scoped_ptr<SkRegion> alpha_shape_; |
| 456 | 458 |
| 457 std::string name_; | 459 std::string name_; |
| 458 | 460 |
| 459 LayerDelegate* delegate_; | 461 LayerDelegate* delegate_; |
| 460 | 462 |
| 461 LayerOwner* owner_; | 463 LayerOwner* owner_; |
| 462 | 464 |
| 463 scoped_refptr<LayerAnimator> animator_; | 465 scoped_refptr<LayerAnimator> animator_; |
| 464 | 466 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 487 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 489 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 488 // or SetTextureMailbox was called. | 490 // or SetTextureMailbox was called. |
| 489 gfx::Size frame_size_in_dip_; | 491 gfx::Size frame_size_in_dip_; |
| 490 | 492 |
| 491 DISALLOW_COPY_AND_ASSIGN(Layer); | 493 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 492 }; | 494 }; |
| 493 | 495 |
| 494 } // namespace ui | 496 } // namespace ui |
| 495 | 497 |
| 496 #endif // UI_COMPOSITOR_LAYER_H_ | 498 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |