Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Side by Side Diff: ui/compositor/layer.h

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Fix applist_unittest and sync with ToT Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 void SwitchCCLayerForTest(); 411 void SwitchCCLayerForTest();
412 412
413 const cc::Region& damaged_region_for_testing() const { 413 const cc::Region& damaged_region_for_testing() const {
414 return damaged_region_; 414 return damaged_region_;
415 } 415 }
416 416
417 const gfx::Size& frame_size_in_dip_for_testing() const { 417 const gfx::Size& frame_size_in_dip_for_testing() const {
418 return frame_size_in_dip_; 418 return frame_size_in_dip_;
419 } 419 }
420 420
421 // The back link from the mask layer to it's associated masked layer.
422 // We keep this reference for the case that if the mask layer gets deleted
423 // while attached to the main layer before the main layer is deleted.
424 const Layer* layer_mask_back_link() const { return layer_mask_back_link_; }
425
421 private: 426 private:
422 friend class LayerOwner; 427 friend class LayerOwner;
423 class LayerMirror; 428 class LayerMirror;
424 429
425 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators); 430 void CollectAnimators(std::vector<scoped_refptr<LayerAnimator> >* animators);
426 431
427 // Stacks |child| above or below |other|. Helper method for StackAbove() and 432 // Stacks |child| above or below |other|. Helper method for StackAbove() and
428 // StackBelow(). 433 // StackBelow().
429 void StackRelativeTo(Layer* child, Layer* other, bool above); 434 void StackRelativeTo(Layer* child, Layer* other, bool above);
430 435
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 587 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
583 // or SetTextureMailbox was called. 588 // or SetTextureMailbox was called.
584 gfx::Size frame_size_in_dip_; 589 gfx::Size frame_size_in_dip_;
585 590
586 DISALLOW_COPY_AND_ASSIGN(Layer); 591 DISALLOW_COPY_AND_ASSIGN(Layer);
587 }; 592 };
588 593
589 } // namespace ui 594 } // namespace ui
590 595
591 #endif // UI_COMPOSITOR_LAYER_H_ 596 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698