summaryrefslogtreecommitdiffstats
path: root/cc/animation/animation_id_provider.cc
blob: 5c7afb6d98c7ae4fa8a4360b22681456d6efd5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 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/animation/animation_id_provider.h"

namespace cc {

int AnimationIdProvider::NextAnimationId() {
  static int next_animation_id = 1;
  return next_animation_id++;
}

int AnimationIdProvider::NextGroupId() {
  static int next_group_id = 1;
  return next_group_id++;
}

}  // namespace cc