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

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 (UMA name fix) Created 3 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 unified diff | Download patch
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() override;
424 425
425 // Creates a corresponding composited layer for |type_|. 426 // Creates a corresponding composited layer for |type_|.
426 void CreateCcLayer(); 427 void CreateCcLayer();
427 428
428 // Recomputes and sets to |cc_layer_|. 429 // Recomputes and sets to |cc_layer_|.
429 void RecomputeDrawsContentAndUVRect(); 430 void RecomputeDrawsContentAndUVRect();
430 void RecomputePosition(); 431 void RecomputePosition();
431 432
432 // Set all filters which got applied to the layer. 433 // Set all filters which got applied to the layer.
433 void SetLayerFilters(); 434 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 538 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
538 // or SetTextureMailbox was called. 539 // or SetTextureMailbox was called.
539 gfx::Size frame_size_in_dip_; 540 gfx::Size frame_size_in_dip_;
540 541
541 DISALLOW_COPY_AND_ASSIGN(Layer); 542 DISALLOW_COPY_AND_ASSIGN(Layer);
542 }; 543 };
543 544
544 } // namespace ui 545 } // namespace ui
545 546
546 #endif // UI_COMPOSITOR_LAYER_H_ 547 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698