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

Side by Side Diff: cc/layers/layer_impl.h

Issue 219963005: cc: Add support for partial swaps when using impl-side painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve cc_unittests build error 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
« no previous file with comments | « no previous file | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 bool TransformIsAnimatingOnImplOnly() const; 451 bool TransformIsAnimatingOnImplOnly() const;
452 void SetTransformAndInvertibility(const gfx::Transform& transform, 452 void SetTransformAndInvertibility(const gfx::Transform& transform,
453 bool transform_is_invertible); 453 bool transform_is_invertible);
454 bool transform_is_invertible() const { return transform_is_invertible_; } 454 bool transform_is_invertible() const { return transform_is_invertible_; }
455 455
456 // Note this rect is in layer space (not content space). 456 // Note this rect is in layer space (not content space).
457 void SetUpdateRect(const gfx::RectF& update_rect); 457 void SetUpdateRect(const gfx::RectF& update_rect);
458 458
459 const gfx::RectF& update_rect() const { return update_rect_; } 459 const gfx::RectF& update_rect() const { return update_rect_; }
460 460
461 void AddDamageRect(const gfx::RectF& damage_rect);
462
463 const gfx::RectF& damage_rect() const { return damage_rect_; }
464
461 virtual base::DictionaryValue* LayerTreeAsJson() const; 465 virtual base::DictionaryValue* LayerTreeAsJson() const;
462 466
463 void SetStackingOrderChanged(bool stacking_order_changed); 467 void SetStackingOrderChanged(bool stacking_order_changed);
464 468
465 bool LayerPropertyChanged() const { return layer_property_changed_; } 469 bool LayerPropertyChanged() const { return layer_property_changed_; }
466 470
467 void ResetAllChangeTrackingForSubtree(); 471 void ResetAllChangeTrackingForSubtree();
468 472
469 LayerAnimationController* layer_animation_controller() { 473 LayerAnimationController* layer_animation_controller() {
470 return layer_animation_controller_.get(); 474 return layer_animation_controller_.get();
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 int num_dependents_need_push_properties_; 656 int num_dependents_need_push_properties_;
653 657
654 DrawMode current_draw_mode_; 658 DrawMode current_draw_mode_;
655 659
656 private: 660 private:
657 // Rect indicating what was repainted/updated during update. 661 // Rect indicating what was repainted/updated during update.
658 // Note that plugin layers bypass this and leave it empty. 662 // Note that plugin layers bypass this and leave it empty.
659 // Uses layer (not content) space. 663 // Uses layer (not content) space.
660 gfx::RectF update_rect_; 664 gfx::RectF update_rect_;
661 665
666 // This rect is in layer space.
667 gfx::RectF damage_rect_;
668
662 // Manages animations for this layer. 669 // Manages animations for this layer.
663 scoped_refptr<LayerAnimationController> layer_animation_controller_; 670 scoped_refptr<LayerAnimationController> layer_animation_controller_;
664 671
665 // Manages scrollbars for this layer 672 // Manages scrollbars for this layer
666 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; 673 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_;
667 674
668 scoped_ptr<ScrollbarSet> scrollbars_; 675 scoped_ptr<ScrollbarSet> scrollbars_;
669 676
670 ScopedPtrVector<CopyOutputRequest> copy_requests_; 677 ScopedPtrVector<CopyOutputRequest> copy_requests_;
671 678
672 // Group of properties that need to be computed based on the layer tree 679 // Group of properties that need to be computed based on the layer tree
673 // hierarchy before layers can be drawn. 680 // hierarchy before layers can be drawn.
674 DrawProperties<LayerImpl> draw_properties_; 681 DrawProperties<LayerImpl> draw_properties_;
675 682
676 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 683 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
677 684
678 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 685 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
679 }; 686 };
680 687
681 } // namespace cc 688 } // namespace cc
682 689
683 #endif // CC_LAYERS_LAYER_IMPL_H_ 690 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698