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

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

Issue 17261009: cc: Make CopyOutputRequests correctly applied from layer space. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copy-request-compositeandreadback: nit Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc_tests.gyp ('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 <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const OwnedLayerImplList& children() const { return children_; } 77 const OwnedLayerImplList& children() const { return children_; }
78 OwnedLayerImplList& children() { return children_; } 78 OwnedLayerImplList& children() { return children_; }
79 LayerImpl* child_at(size_t index) const { return children_[index]; } 79 LayerImpl* child_at(size_t index) const { return children_[index]; }
80 void AddChild(scoped_ptr<LayerImpl> child); 80 void AddChild(scoped_ptr<LayerImpl> child);
81 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 81 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
82 void set_parent(LayerImpl* parent) { parent_ = parent; } 82 void set_parent(LayerImpl* parent) { parent_ = parent; }
83 // Warning: This does not preserve tree structure invariants. 83 // Warning: This does not preserve tree structure invariants.
84 void ClearChildList(); 84 void ClearChildList();
85 85
86 void PassCopyRequests(ScopedPtrVector<CopyOutputRequest>* requests); 86 void PassCopyRequests(ScopedPtrVector<CopyOutputRequest>* requests);
87 void TakeCopyRequests(ScopedPtrVector<CopyOutputRequest>* request); 87 void TakeCopyRequestsAndTransformToTarget(
88 ScopedPtrVector<CopyOutputRequest>* request);
88 bool HasCopyRequest() const { return !copy_requests_.empty(); } 89 bool HasCopyRequest() const { return !copy_requests_.empty(); }
89 90
90 void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer); 91 void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer);
91 LayerImpl* mask_layer() { return mask_layer_.get(); } 92 LayerImpl* mask_layer() { return mask_layer_.get(); }
92 const LayerImpl* mask_layer() const { return mask_layer_.get(); } 93 const LayerImpl* mask_layer() const { return mask_layer_.get(); }
93 scoped_ptr<LayerImpl> TakeMaskLayer(); 94 scoped_ptr<LayerImpl> TakeMaskLayer();
94 95
95 void SetReplicaLayer(scoped_ptr<LayerImpl> replica_layer); 96 void SetReplicaLayer(scoped_ptr<LayerImpl> replica_layer);
96 LayerImpl* replica_layer() { return replica_layer_.get(); } 97 LayerImpl* replica_layer() { return replica_layer_.get(); }
97 const LayerImpl* replica_layer() const { return replica_layer_.get(); } 98 const LayerImpl* replica_layer() const { return replica_layer_.get(); }
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // Group of properties that need to be computed based on the layer tree 571 // Group of properties that need to be computed based on the layer tree
571 // hierarchy before layers can be drawn. 572 // hierarchy before layers can be drawn.
572 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 573 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
573 574
574 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 575 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
575 }; 576 };
576 577
577 } // namespace cc 578 } // namespace cc
578 579
579 #endif // CC_LAYERS_LAYER_IMPL_H_ 580 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698