| OLD | NEW |
| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 float GetGrayscaleForAnimation() const override; | 406 float GetGrayscaleForAnimation() const override; |
| 407 SkColor GetColorForAnimation() const override; | 407 SkColor GetColorForAnimation() const override; |
| 408 float GetDeviceScaleFactor() const override; | 408 float GetDeviceScaleFactor() const override; |
| 409 void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) override; | 409 void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) override; |
| 410 void RemoveThreadedAnimation(int animation_id) override; | 410 void RemoveThreadedAnimation(int animation_id) override; |
| 411 LayerAnimatorCollection* GetLayerAnimatorCollection() override; | 411 LayerAnimatorCollection* GetLayerAnimatorCollection() override; |
| 412 | 412 |
| 413 // Creates a corresponding composited layer for |type_|. | 413 // Creates a corresponding composited layer for |type_|. |
| 414 void CreateCcLayer(); | 414 void CreateCcLayer(); |
| 415 | 415 |
| 416 void RegisterForAnimations(Compositor* compositor); |
| 417 void AttachObservers(); |
| 418 void DetachObservers(); |
| 419 |
| 416 // Recomputes and sets to |cc_layer_|. | 420 // Recomputes and sets to |cc_layer_|. |
| 417 void RecomputeDrawsContentAndUVRect(); | 421 void RecomputeDrawsContentAndUVRect(); |
| 418 void RecomputePosition(); | 422 void RecomputePosition(); |
| 419 | 423 |
| 420 // Set all filters which got applied to the layer. | 424 // Set all filters which got applied to the layer. |
| 421 void SetLayerFilters(); | 425 void SetLayerFilters(); |
| 422 | 426 |
| 423 // Set all filters which got applied to the layer background. | 427 // Set all filters which got applied to the layer background. |
| 424 void SetLayerBackgroundFilters(); | 428 void SetLayerBackgroundFilters(); |
| 425 | 429 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 532 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 529 // or SetTextureMailbox was called. | 533 // or SetTextureMailbox was called. |
| 530 gfx::Size frame_size_in_dip_; | 534 gfx::Size frame_size_in_dip_; |
| 531 | 535 |
| 532 DISALLOW_COPY_AND_ASSIGN(Layer); | 536 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 533 }; | 537 }; |
| 534 | 538 |
| 535 } // namespace ui | 539 } // namespace ui |
| 536 | 540 |
| 537 #endif // UI_COMPOSITOR_LAYER_H_ | 541 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |