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

Unified Diff: ui/compositor/layer_tree_owner.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 | « ui/compositor/layer_tree_owner.h ('k') | ui/compositor/layer_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_tree_owner.cc
diff --git a/ui/compositor/layer_tree_owner.cc b/ui/compositor/layer_tree_owner.cc
deleted file mode 100644
index ebb0a7fc7f4b9da01245d897d4d9e66e19c5da82..0000000000000000000000000000000000000000
--- a/ui/compositor/layer_tree_owner.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/compositor/layer_tree_owner.h"
-
-#include "ui/compositor/layer.h"
-
-namespace ui {
-
-namespace {
-
-// Deletes |layer| and all its descendants.
-void DeepDeleteLayers(Layer* layer) {
- std::vector<Layer*> children = layer->children();
- for (std::vector<Layer*>::const_iterator it = children.begin();
- it != children.end();
- ++it) {
- Layer* child = *it;
- DeepDeleteLayers(child);
- }
- delete layer;
-}
-
-} // namespace
-
-LayerTreeOwner::LayerTreeOwner(Layer* root) : root_(root) {}
-
-LayerTreeOwner::~LayerTreeOwner() {
- if (root_)
- DeepDeleteLayers(root_);
-}
-
-} // namespace ui
« no previous file with comments | « ui/compositor/layer_tree_owner.h ('k') | ui/compositor/layer_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698