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

Side by Side Diff: ui/compositor/layer.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/compositor.cc ('k') | ui/compositor/layer.cc » ('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_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 gfx::Transform GetTransformForAnimation() const override; 414 gfx::Transform GetTransformForAnimation() const override;
415 float GetOpacityForAnimation() const override; 415 float GetOpacityForAnimation() const override;
416 bool GetVisibilityForAnimation() const override; 416 bool GetVisibilityForAnimation() const override;
417 float GetBrightnessForAnimation() const override; 417 float GetBrightnessForAnimation() const override;
418 float GetGrayscaleForAnimation() const override; 418 float GetGrayscaleForAnimation() const override;
419 SkColor GetColorForAnimation() const override; 419 SkColor GetColorForAnimation() const override;
420 float GetDeviceScaleFactor() const override; 420 float GetDeviceScaleFactor() const override;
421 cc::Layer* GetCcLayer() const override; 421 cc::Layer* GetCcLayer() const override;
422 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override; 422 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override;
423 LayerAnimatorCollection* GetLayerAnimatorCollection() override; 423 LayerAnimatorCollection* GetLayerAnimatorCollection() override;
424 int GetFrameNumber() const override;
425 float GetRefreshRate() const override;
424 426
425 // Creates a corresponding composited layer for |type_|. 427 // Creates a corresponding composited layer for |type_|.
426 void CreateCcLayer(); 428 void CreateCcLayer();
427 429
428 // Recomputes and sets to |cc_layer_|. 430 // Recomputes and sets to |cc_layer_|.
429 void RecomputeDrawsContentAndUVRect(); 431 void RecomputeDrawsContentAndUVRect();
430 void RecomputePosition(); 432 void RecomputePosition();
431 433
432 // Set all filters which got applied to the layer. 434 // Set all filters which got applied to the layer.
433 void SetLayerFilters(); 435 void SetLayerFilters();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 539 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
538 // or SetTextureMailbox was called. 540 // or SetTextureMailbox was called.
539 gfx::Size frame_size_in_dip_; 541 gfx::Size frame_size_in_dip_;
540 542
541 DISALLOW_COPY_AND_ASSIGN(Layer); 543 DISALLOW_COPY_AND_ASSIGN(Layer);
542 }; 544 };
543 545
544 } // namespace ui 546 } // namespace ui
545 547
546 #endif // UI_COMPOSITOR_LAYER_H_ 548 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698