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 <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 const Layer* layer_mask_back_link() const { return layer_mask_back_link_; } | |
|
danakj
2017/07/26 16:06:04
can you add a comment explaining what this is?
malaykeshav
2017/07/26 18:34:45
Done. I am not why we need to duplicate the commen
| |
| 419 | |
| 418 private: | 420 private: |
| 419 friend class LayerOwner; | 421 friend class LayerOwner; |
| 420 class LayerMirror; | 422 class LayerMirror; |
| 421 | 423 |
| 422 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators); | 424 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators); |
| 423 | 425 |
| 424 // Stacks |child| above or below |other|. Helper method for StackAbove() and | 426 // Stacks |child| above or below |other|. Helper method for StackAbove() and |
| 425 // StackBelow(). | 427 // StackBelow(). |
| 426 void StackRelativeTo(Layer* child, Layer* other, bool above); | 428 void StackRelativeTo(Layer* child, Layer* other, bool above); |
| 427 | 429 |
| (...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 | 581 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 580 // or SetTextureMailbox was called. | 582 // or SetTextureMailbox was called. |
| 581 gfx::Size frame_size_in_dip_; | 583 gfx::Size frame_size_in_dip_; |
| 582 | 584 |
| 583 DISALLOW_COPY_AND_ASSIGN(Layer); | 585 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 584 }; | 586 }; |
| 585 | 587 |
| 586 } // namespace ui | 588 } // namespace ui |
| 587 | 589 |
| 588 #endif // UI_COMPOSITOR_LAYER_H_ | 590 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |