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

Side by Side Diff: ui/compositor/test/test_layer_animation_delegate.cc

Issue 2631333002: [animations] Adds metrics for jank on selected layer animations (Closed)
Patch Set: Adds UMA reporting for ripples and overview mode (query refresh rate) Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 #include "ui/compositor/test/test_layer_animation_delegate.h" 6 #include "ui/compositor/test/test_layer_animation_delegate.h"
7 7
8 namespace ui { 8 namespace ui {
9 9
10 TestLayerThreadedAnimationDelegate::TestLayerThreadedAnimationDelegate() {} 10 TestLayerThreadedAnimationDelegate::TestLayerThreadedAnimationDelegate() {}
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 cc::Layer* TestLayerAnimationDelegate::GetCcLayer() const { 109 cc::Layer* TestLayerAnimationDelegate::GetCcLayer() const {
110 return cc_layer_.get(); 110 return cc_layer_.get();
111 } 111 }
112 112
113 LayerThreadedAnimationDelegate* 113 LayerThreadedAnimationDelegate*
114 TestLayerAnimationDelegate::GetThreadedAnimationDelegate() { 114 TestLayerAnimationDelegate::GetThreadedAnimationDelegate() {
115 return &threaded_delegate_; 115 return &threaded_delegate_;
116 } 116 }
117 117
118 int TestLayerAnimationDelegate::GetFrameNumber() const {
119 return 0;
120 }
121
122 float TestLayerAnimationDelegate::GetRefreshRate() const {
123 return 60.0;
124 }
125
126
118 void TestLayerAnimationDelegate::CreateCcLayer() { 127 void TestLayerAnimationDelegate::CreateCcLayer() {
119 cc_layer_ = cc::Layer::Create(); 128 cc_layer_ = cc::Layer::Create();
120 } 129 }
121 130
122 void TestLayerThreadedAnimationDelegate::AddThreadedAnimation( 131 void TestLayerThreadedAnimationDelegate::AddThreadedAnimation(
123 std::unique_ptr<cc::Animation> animation) {} 132 std::unique_ptr<cc::Animation> animation) {}
124 133
125 void TestLayerThreadedAnimationDelegate::RemoveThreadedAnimation( 134 void TestLayerThreadedAnimationDelegate::RemoveThreadedAnimation(
126 int animation_id) {} 135 int animation_id) {}
127 136
128 } // namespace ui 137 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698