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

Unified Diff: cc/layers/layer_lists.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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_lists.h ('k') | cc/layers/layer_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_lists.cc
diff --git a/cc/layers/layer_lists.cc b/cc/layers/layer_lists.cc
deleted file mode 100644
index 7a4df7295a3e83ebab247e318ccf8f0b64101eab..0000000000000000000000000000000000000000
--- a/cc/layers/layer_lists.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2013 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 "cc/layers/layer_lists.h"
-
-#include "cc/layers/layer.h"
-
-namespace cc {
-
-RenderSurfaceLayerList::RenderSurfaceLayerList() {}
-
-RenderSurfaceLayerList::~RenderSurfaceLayerList() {
- for (size_t i = 0; i < size(); ++i)
- at(size() - 1 - i)->ClearRenderSurface();
-}
-
-Layer* RenderSurfaceLayerList::at(size_t i) const {
- return list_.at(i).get();
-}
-
-void RenderSurfaceLayerList::pop_back() {
- list_.pop_back();
-}
-
-void RenderSurfaceLayerList::push_back(const scoped_refptr<Layer>& layer) {
- list_.push_back(layer);
-}
-
-Layer* RenderSurfaceLayerList::back() {
- return list_.back().get();
-}
-
-size_t RenderSurfaceLayerList::size() const {
- return list_.size();
-}
-
-scoped_refptr<Layer>& RenderSurfaceLayerList::operator[](size_t i) {
- return list_[i];
-}
-const scoped_refptr<Layer>& RenderSurfaceLayerList::operator[](size_t i) const {
- return list_[i];
-}
-
-LayerList::iterator RenderSurfaceLayerList::begin() {
- return list_.begin();
-}
-
-LayerList::iterator RenderSurfaceLayerList::end() {
- return list_.end();
-}
-
-LayerList::const_iterator RenderSurfaceLayerList::begin() const {
- return list_.begin();
-}
-
-LayerList::const_iterator RenderSurfaceLayerList::end() const {
- return list_.end();
-}
-
-void RenderSurfaceLayerList::clear() {
- for (size_t i = 0; i < list_.size(); ++i)
- DCHECK(!list_[i]->render_surface());
- list_.clear();
-}
-
-} // namespace cc
« no previous file with comments | « cc/layers/layer_lists.h ('k') | cc/layers/layer_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698