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

Unified Diff: cc/layers/layer_impl.cc

Issue 13285002: cc: Consolidate LayerList types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_iterator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index da5ca13e3824aeb51a8284e640708aaf36148ea6..34334b19ca84c6b7dfaa8b8beb7e344b3e5346e0 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -82,7 +82,7 @@ void LayerImpl::AddChild(scoped_ptr<LayerImpl> child) {
}
scoped_ptr<LayerImpl> LayerImpl::RemoveChild(LayerImpl* child) {
- for (ScopedPtrVector<LayerImpl>::iterator it = children_.begin();
+ for (OwnedLayerImplList::iterator it = children_.begin();
it != children_.end();
++it) {
if (*it == child) {
@@ -110,6 +110,10 @@ void LayerImpl::CreateRenderSurface() {
draw_properties_.render_target = this;
}
+void LayerImpl::ClearRenderSurface() {
+ draw_properties_.render_surface.reset();
+}
+
scoped_ptr<SharedQuadState> LayerImpl::CreateSharedQuadState() const {
scoped_ptr<SharedQuadState> state = SharedQuadState::Create();
state->SetAll(draw_properties_.target_space_transform,
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698