| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 void SwitchCCLayerForTest(); | 408 void SwitchCCLayerForTest(); |
| 409 | 409 |
| 410 const cc::Region& damaged_region_for_testing() const { | 410 const cc::Region& damaged_region_for_testing() const { |
| 411 return damaged_region_; | 411 return damaged_region_; |
| 412 } | 412 } |
| 413 | 413 |
| 414 const gfx::Size& frame_size_in_dip_for_testing() const { | 414 const gfx::Size& frame_size_in_dip_for_testing() const { |
| 415 return frame_size_in_dip_; | 415 return frame_size_in_dip_; |
| 416 } | 416 } |
| 417 | 417 |
| 418 // The back link from the mask layer to it's associated masked layer. |
| 419 // We keep this reference for the case that if the mask layer gets deleted |
| 420 // while attached to the main layer before the main layer is deleted. |
| 421 const Layer* layer_mask_back_link() const { return layer_mask_back_link_; } |
| 422 |
| 418 private: | 423 private: |
| 419 friend class LayerOwner; | 424 friend class LayerOwner; |
| 420 class LayerMirror; | 425 class LayerMirror; |
| 421 | 426 |
| 422 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators); | 427 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators); |
| 423 | 428 |
| 424 // Stacks |child| above or below |other|. Helper method for StackAbove() and | 429 // Stacks |child| above or below |other|. Helper method for StackAbove() and |
| 425 // StackBelow(). | 430 // StackBelow(). |
| 426 void StackRelativeTo(Layer* child, Layer* other, bool above); | 431 void StackRelativeTo(Layer* child, Layer* other, bool above); |
| 427 | 432 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 584 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 580 // or SetTextureMailbox was called. | 585 // or SetTextureMailbox was called. |
| 581 gfx::Size frame_size_in_dip_; | 586 gfx::Size frame_size_in_dip_; |
| 582 | 587 |
| 583 DISALLOW_COPY_AND_ASSIGN(Layer); | 588 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 584 }; | 589 }; |
| 585 | 590 |
| 586 } // namespace ui | 591 } // namespace ui |
| 587 | 592 |
| 588 #endif // UI_COMPOSITOR_LAYER_H_ | 593 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |