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

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: WIP - move damage tracking to DamageTracker Created 6 years, 8 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') | cc/layers/layer_impl.cc » ('J')
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void SetTransform(const gfx::Transform& transform); 446 void SetTransform(const gfx::Transform& transform);
447 const gfx::Transform& transform() const { return transform_; } 447 const gfx::Transform& transform() const { return transform_; }
448 bool TransformIsAnimating() const; 448 bool TransformIsAnimating() const;
449 bool TransformIsAnimatingOnImplOnly() const; 449 bool TransformIsAnimatingOnImplOnly() const;
450 450
451 // Note this rect is in layer space (not content space). 451 // Note this rect is in layer space (not content space).
452 void SetUpdateRect(const gfx::RectF& update_rect); 452 void SetUpdateRect(const gfx::RectF& update_rect);
453 453
454 const gfx::RectF& update_rect() const { return update_rect_; } 454 const gfx::RectF& update_rect() const { return update_rect_; }
455 455
456 void SetInitializedTileRect(gfx::Rect initialized_tile_rect);
reveman 2014/04/11 18:11:34 I'm not a fan of "InitializedTile" name. This is t
sohanjg 2014/04/14 10:16:11 Done.
457
458 const gfx::Rect& initialized_tile_rect() const {
459 return initialized_tile_rect_;
460 }
461
456 virtual base::DictionaryValue* LayerTreeAsJson() const; 462 virtual base::DictionaryValue* LayerTreeAsJson() const;
457 463
458 void SetStackingOrderChanged(bool stacking_order_changed); 464 void SetStackingOrderChanged(bool stacking_order_changed);
459 465
460 bool LayerPropertyChanged() const { return layer_property_changed_; } 466 bool LayerPropertyChanged() const { return layer_property_changed_; }
461 467
462 void ResetAllChangeTrackingForSubtree(); 468 void ResetAllChangeTrackingForSubtree();
463 469
464 LayerAnimationController* layer_animation_controller() { 470 LayerAnimationController* layer_animation_controller() {
465 return layer_animation_controller_.get(); 471 return layer_animation_controller_.get();
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 int num_dependents_need_push_properties_; 650 int num_dependents_need_push_properties_;
645 651
646 DrawMode current_draw_mode_; 652 DrawMode current_draw_mode_;
647 653
648 private: 654 private:
649 // Rect indicating what was repainted/updated during update. 655 // Rect indicating what was repainted/updated during update.
650 // Note that plugin layers bypass this and leave it empty. 656 // Note that plugin layers bypass this and leave it empty.
651 // Uses layer (not content) space. 657 // Uses layer (not content) space.
652 gfx::RectF update_rect_; 658 gfx::RectF update_rect_;
653 659
660 gfx::Rect initialized_tile_rect_;
661
654 // Manages animations for this layer. 662 // Manages animations for this layer.
655 scoped_refptr<LayerAnimationController> layer_animation_controller_; 663 scoped_refptr<LayerAnimationController> layer_animation_controller_;
656 664
657 // Manages scrollbars for this layer 665 // Manages scrollbars for this layer
658 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; 666 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_;
659 667
660 scoped_ptr<ScrollbarSet> scrollbars_; 668 scoped_ptr<ScrollbarSet> scrollbars_;
661 669
662 ScopedPtrVector<CopyOutputRequest> copy_requests_; 670 ScopedPtrVector<CopyOutputRequest> copy_requests_;
663 671
664 // Group of properties that need to be computed based on the layer tree 672 // Group of properties that need to be computed based on the layer tree
665 // hierarchy before layers can be drawn. 673 // hierarchy before layers can be drawn.
666 DrawProperties<LayerImpl> draw_properties_; 674 DrawProperties<LayerImpl> draw_properties_;
667 675
668 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 676 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
669 677
670 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 678 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
671 }; 679 };
672 680
673 } // namespace cc 681 } // namespace cc
674 682
675 #endif // CC_LAYERS_LAYER_IMPL_H_ 683 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698