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

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

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (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 | « cc/layers/heads_up_display_layer_impl.cc ('k') | 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // For compatibility with Layer. 152 // For compatibility with Layer.
153 bool has_render_surface() const { return !!render_surface(); } 153 bool has_render_surface() const { return !!render_surface(); }
154 154
155 void PassCopyRequests( 155 void PassCopyRequests(
156 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); 156 std::vector<std::unique_ptr<CopyOutputRequest>>* requests);
157 // Can only be called when the layer has a copy request. 157 // Can only be called when the layer has a copy request.
158 void TakeCopyRequestsAndTransformToTarget( 158 void TakeCopyRequestsAndTransformToTarget(
159 std::vector<std::unique_ptr<CopyOutputRequest>>* request); 159 std::vector<std::unique_ptr<CopyOutputRequest>>* request);
160 bool HasCopyRequest() const { return !copy_requests_.empty(); } 160 bool HasCopyRequest() const { return !copy_requests_.empty(); }
161 bool InsideCopyRequest() const;
162 161
163 void SetMaskLayer(std::unique_ptr<LayerImpl> mask_layer); 162 void SetMaskLayer(std::unique_ptr<LayerImpl> mask_layer);
164 LayerImpl* mask_layer() { return mask_layer_; } 163 LayerImpl* mask_layer() { return mask_layer_; }
165 const LayerImpl* mask_layer() const { return mask_layer_; } 164 const LayerImpl* mask_layer() const { return mask_layer_; }
166 std::unique_ptr<LayerImpl> TakeMaskLayer(); 165 std::unique_ptr<LayerImpl> TakeMaskLayer();
167 166
168 void SetReplicaLayer(std::unique_ptr<LayerImpl> replica_layer); 167 void SetReplicaLayer(std::unique_ptr<LayerImpl> replica_layer);
169 LayerImpl* replica_layer() { return replica_layer_; } 168 LayerImpl* replica_layer() { return replica_layer_; }
170 const LayerImpl* replica_layer() const { return replica_layer_; } 169 const LayerImpl* replica_layer() const { return replica_layer_; }
171 std::unique_ptr<LayerImpl> TakeReplicaLayer(); 170 std::unique_ptr<LayerImpl> TakeReplicaLayer();
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 650
652 bool scrolls_drawn_descendant_; 651 bool scrolls_drawn_descendant_;
653 bool has_will_change_transform_hint_; 652 bool has_will_change_transform_hint_;
654 653
655 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 654 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
656 }; 655 };
657 656
658 } // namespace cc 657 } // namespace cc
659 658
660 #endif // CC_LAYERS_LAYER_IMPL_H_ 659 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698