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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1968803002: cc : Use effect node data to determine which opacity wins at commit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 float width) const; 547 float width) const;
548 548
549 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const; 549 gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const;
550 550
551 private: 551 private:
552 // Warning: This does not preserve tree structure invariants. 552 // Warning: This does not preserve tree structure invariants.
553 void ClearChildList(); 553 void ClearChildList();
554 554
555 void ValidateQuadResourcesInternal(DrawQuad* quad) const; 555 void ValidateQuadResourcesInternal(DrawQuad* quad) const;
556 556
557 void NoteLayerPropertyChangedForDescendantsInternal();
558 void PushLayerPropertyChangedForSubtreeInternal();
559
jaydasika 2016/05/10 23:38:45 Clean up unrelated to this CL
560 virtual const char* LayerTypeAsString() const; 557 virtual const char* LayerTypeAsString() const;
561 558
562 // Properties internal to LayerImpl 559 // Properties internal to LayerImpl
563 LayerImpl* parent_; 560 LayerImpl* parent_;
564 LayerImplList children_; 561 LayerImplList children_;
565 562
566 // mask_layer_ can be temporarily stolen during tree sync, we need this ID to 563 // mask_layer_ can be temporarily stolen during tree sync, we need this ID to
567 // confirm newly assigned layer is still the previous one 564 // confirm newly assigned layer is still the previous one
568 int mask_layer_id_; 565 int mask_layer_id_;
569 LayerImpl* mask_layer_; 566 LayerImpl* mask_layer_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 bool scrolls_drawn_descendant_; 660 bool scrolls_drawn_descendant_;
664 // If true, the layer or one of its descendants has a touch handler. 661 // If true, the layer or one of its descendants has a touch handler.
665 bool layer_or_descendant_has_touch_handler_; 662 bool layer_or_descendant_has_touch_handler_;
666 663
667 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 664 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
668 }; 665 };
669 666
670 } // namespace cc 667 } // namespace cc
671 668
672 #endif // CC_LAYERS_LAYER_IMPL_H_ 669 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698