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

Unified Diff: cc/animation_id_provider.cc

Issue 11896017: Thread ui opacity animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correctly deal with sequences meant to start together Created 7 years, 11 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/animation_id_provider.cc
diff --git a/cc/animation_id_provider.cc b/cc/animation_id_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bf302837b40679b95e9236694d632827a413288e
--- /dev/null
+++ b/cc/animation_id_provider.cc
@@ -0,0 +1,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_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

Powered by Google App Engine
This is Rietveld 408576698