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

Unified Diff: cc/layers/layer_collections.h

Issue 1801853002: Transfer LayerImpl ownership to LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaaase. Created 4 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
Index: cc/layers/layer_collections.h
diff --git a/cc/layers/layer_collections.h b/cc/layers/layer_collections.h
new file mode 100644
index 0000000000000000000000000000000000000000..68c8011f55c120f43404e0e0a287b5356a265d6a
--- /dev/null
+++ b/cc/layers/layer_collections.h
@@ -0,0 +1,27 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
ajuma 2016/03/18 22:09:21 It's 2016 :)
Ian Vollick 2016/03/19 03:05:22 (Checks watch). Good point, updated.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_LAYERS_LAYER_COLLECTIONS_H_
+#define CC_LAYERS_LAYER_COLLECTIONS_H_
+
+#include <unordered_map>
+#include <vector>
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/base/cc_export.h"
+
+namespace cc {
+class Layer;
+class LayerImpl;
+
+using LayerList = std::vector<scoped_refptr<Layer>>;
+using OwnedLayerImplList = std::vector<scoped_ptr<LayerImpl>>;
+using LayerImplList = std::vector<LayerImpl*>;
+using OwnedLayerImplMap = std::unordered_map<int, scoped_ptr<LayerImpl>>;
+using LayerImplMap = std::unordered_map<int, LayerImpl*>;
+
+} // namespace cc
+
+#endif // CC_LAYERS_LAYER_COLLECTIONS_H_

Powered by Google App Engine
This is Rietveld 408576698