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

Side by Side Diff: ui/compositor/layer_animation_delegate.h

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/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | 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 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ 6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/compositor/compositor_export.h" 9 #include "ui/compositor/compositor_export.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 23 matching lines...) Expand all
34 virtual gfx::Transform GetTransformForAnimation() const = 0; 34 virtual gfx::Transform GetTransformForAnimation() const = 0;
35 virtual float GetOpacityForAnimation() const = 0; 35 virtual float GetOpacityForAnimation() const = 0;
36 virtual bool GetVisibilityForAnimation() const = 0; 36 virtual bool GetVisibilityForAnimation() const = 0;
37 virtual float GetBrightnessForAnimation() const = 0; 37 virtual float GetBrightnessForAnimation() const = 0;
38 virtual float GetGrayscaleForAnimation() const = 0; 38 virtual float GetGrayscaleForAnimation() const = 0;
39 virtual SkColor GetColorForAnimation() const = 0; 39 virtual SkColor GetColorForAnimation() const = 0;
40 virtual float GetDeviceScaleFactor() const = 0; 40 virtual float GetDeviceScaleFactor() const = 0;
41 virtual cc::Layer* GetCcLayer() const = 0; 41 virtual cc::Layer* GetCcLayer() const = 0;
42 virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0; 42 virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0;
43 virtual LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() = 0; 43 virtual LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() = 0;
44 virtual int GetFrameNumber() const = 0;
45 virtual float GetRefreshRate() const = 0;
44 46
45 protected: 47 protected:
46 virtual ~LayerAnimationDelegate() {} 48 virtual ~LayerAnimationDelegate() {}
47 }; 49 };
48 50
49 } // namespace ui 51 } // namespace ui
50 52
51 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ 53 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698