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

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

Issue 291843012: compositor: Tick the UI animations from cc, instead of from timer callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 virtual gfx::Transform GetTransformForAnimation() const OVERRIDE; 359 virtual gfx::Transform GetTransformForAnimation() const OVERRIDE;
360 virtual float GetOpacityForAnimation() const OVERRIDE; 360 virtual float GetOpacityForAnimation() const OVERRIDE;
361 virtual bool GetVisibilityForAnimation() const OVERRIDE; 361 virtual bool GetVisibilityForAnimation() const OVERRIDE;
362 virtual float GetBrightnessForAnimation() const OVERRIDE; 362 virtual float GetBrightnessForAnimation() const OVERRIDE;
363 virtual float GetGrayscaleForAnimation() const OVERRIDE; 363 virtual float GetGrayscaleForAnimation() const OVERRIDE;
364 virtual SkColor GetColorForAnimation() const OVERRIDE; 364 virtual SkColor GetColorForAnimation() const OVERRIDE;
365 virtual float GetDeviceScaleFactor() const OVERRIDE; 365 virtual float GetDeviceScaleFactor() const OVERRIDE;
366 virtual void AddThreadedAnimation( 366 virtual void AddThreadedAnimation(
367 scoped_ptr<cc::Animation> animation) OVERRIDE; 367 scoped_ptr<cc::Animation> animation) OVERRIDE;
368 virtual void RemoveThreadedAnimation(int animation_id) OVERRIDE; 368 virtual void RemoveThreadedAnimation(int animation_id) OVERRIDE;
369 virtual LayerAnimatorCollection* GetLayerAnimatorCollection() OVERRIDE;
369 370
370 // Creates a corresponding composited layer for |type_|. 371 // Creates a corresponding composited layer for |type_|.
371 void CreateWebLayer(); 372 void CreateWebLayer();
372 373
373 // Recomputes and sets to |cc_layer_|. 374 // Recomputes and sets to |cc_layer_|.
374 void RecomputeDrawsContentAndUVRect(); 375 void RecomputeDrawsContentAndUVRect();
375 void RecomputePosition(); 376 void RecomputePosition();
376 377
377 // Set all filters which got applied to the layer. 378 // Set all filters which got applied to the layer.
378 void SetLayerFilters(); 379 void SetLayerFilters();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 472 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
472 // or SetTextureMailbox was called. 473 // or SetTextureMailbox was called.
473 gfx::Size frame_size_in_dip_; 474 gfx::Size frame_size_in_dip_;
474 475
475 DISALLOW_COPY_AND_ASSIGN(Layer); 476 DISALLOW_COPY_AND_ASSIGN(Layer);
476 }; 477 };
477 478
478 } // namespace ui 479 } // namespace ui
479 480
480 #endif // UI_COMPOSITOR_LAYER_H_ 481 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698