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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 2362073002: cc/blimp: Add a LayerTreeHostRemote implementation. (Closed)
Patch Set: win Created 4 years, 3 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/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a8b247940b60181cfdcf9a048e64141df275ecf8
--- /dev/null
+++ b/cc/trees/layer_tree_host.cc
@@ -0,0 +1,19 @@
+// Copyright 2016 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/trees/layer_tree_host.h"
+
+#include "base/atomic_sequence_num.h"
+
+namespace cc {
+namespace {
+static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number;
+} // namespace
+
+// static
+int LayerTreeHost::GenerateHostId() {
+ return s_layer_tree_host_sequence_number.GetNext() + 1;
+}
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698