| 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
|
|
|