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

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

Issue 1841443003: cc : Use effect tree to determine if a layer is inside copy request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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') | no next file with comments »
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 std::set<LayerImpl*>* clip_children() { return clip_children_.get(); } 179 std::set<LayerImpl*>* clip_children() { return clip_children_.get(); }
180 const std::set<LayerImpl*>* clip_children() const { 180 const std::set<LayerImpl*>* clip_children() const {
181 return clip_children_.get(); 181 return clip_children_.get();
182 } 182 }
183 183
184 void PassCopyRequests(std::vector<scoped_ptr<CopyOutputRequest>>* requests); 184 void PassCopyRequests(std::vector<scoped_ptr<CopyOutputRequest>>* requests);
185 // Can only be called when the layer has a copy request. 185 // Can only be called when the layer has a copy request.
186 void TakeCopyRequestsAndTransformToTarget( 186 void TakeCopyRequestsAndTransformToTarget(
187 std::vector<scoped_ptr<CopyOutputRequest>>* request); 187 std::vector<scoped_ptr<CopyOutputRequest>>* request);
188 bool HasCopyRequest() const { return !copy_requests_.empty(); } 188 bool HasCopyRequest() const { return !copy_requests_.empty(); }
189 bool AnchestorHasCopyRequest() const; 189 bool InsideCopyRequest() const;
190 190
191 void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer); 191 void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer);
192 LayerImpl* mask_layer() { return mask_layer_; } 192 LayerImpl* mask_layer() { return mask_layer_; }
193 const LayerImpl* mask_layer() const { return mask_layer_; } 193 const LayerImpl* mask_layer() const { return mask_layer_; }
194 scoped_ptr<LayerImpl> TakeMaskLayer(); 194 scoped_ptr<LayerImpl> TakeMaskLayer();
195 195
196 void SetReplicaLayer(scoped_ptr<LayerImpl> replica_layer); 196 void SetReplicaLayer(scoped_ptr<LayerImpl> replica_layer);
197 LayerImpl* replica_layer() { return replica_layer_; } 197 LayerImpl* replica_layer() { return replica_layer_; }
198 const LayerImpl* replica_layer() const { return replica_layer_; } 198 const LayerImpl* replica_layer() const { return replica_layer_; }
199 scoped_ptr<LayerImpl> TakeReplicaLayer(); 199 scoped_ptr<LayerImpl> TakeReplicaLayer();
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 bool layer_or_descendant_is_drawn_; 764 bool layer_or_descendant_is_drawn_;
765 // If true, the layer or one of its descendants has a touch handler. 765 // If true, the layer or one of its descendants has a touch handler.
766 bool layer_or_descendant_has_touch_handler_; 766 bool layer_or_descendant_has_touch_handler_;
767 767
768 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 768 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
769 }; 769 };
770 770
771 } // namespace cc 771 } // namespace cc
772 772
773 #endif // CC_LAYERS_LAYER_IMPL_H_ 773 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698