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

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

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export info for frameviewer too Created 6 years, 4 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 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 void SetTransform(const gfx::Transform& transform); 462 void SetTransform(const gfx::Transform& transform);
463 const gfx::Transform& transform() const { return transform_; } 463 const gfx::Transform& transform() const { return transform_; }
464 bool TransformIsAnimating() const; 464 bool TransformIsAnimating() const;
465 bool TransformIsAnimatingOnImplOnly() const; 465 bool TransformIsAnimatingOnImplOnly() const;
466 void SetTransformAndInvertibility(const gfx::Transform& transform, 466 void SetTransformAndInvertibility(const gfx::Transform& transform,
467 bool transform_is_invertible); 467 bool transform_is_invertible);
468 bool transform_is_invertible() const { return transform_is_invertible_; } 468 bool transform_is_invertible() const { return transform_is_invertible_; }
469 469
470 // Note this rect is in layer space (not content space). 470 // Note this rect is in layer space (not content space).
471 void SetUpdateRect(const gfx::RectF& update_rect); 471 void SetUpdateRect(const gfx::RectF& update_rect);
472 void SetIncludesFirstPaintInvalidation(bool b) {
473 includes_first_paint_invalidation_ = b;
474 }
472 475
473 const gfx::RectF& update_rect() const { return update_rect_; } 476 const gfx::RectF& update_rect() const { return update_rect_; }
477 bool includes_first_paint_invalidation() const {
478 return includes_first_paint_invalidation_;
479 }
474 480
475 void AddDamageRect(const gfx::RectF& damage_rect); 481 void AddDamageRect(const gfx::RectF& damage_rect);
476 482
477 const gfx::RectF& damage_rect() const { return damage_rect_; } 483 const gfx::RectF& damage_rect() const { return damage_rect_; }
478 484
479 virtual base::DictionaryValue* LayerTreeAsJson() const; 485 virtual base::DictionaryValue* LayerTreeAsJson() const;
480 486
481 void SetStackingOrderChanged(bool stacking_order_changed); 487 void SetStackingOrderChanged(bool stacking_order_changed);
482 488
483 bool LayerPropertyChanged() const { return layer_property_changed_; } 489 bool LayerPropertyChanged() const { return layer_property_changed_; }
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 int sorting_context_id_; 685 int sorting_context_id_;
680 686
681 DrawMode current_draw_mode_; 687 DrawMode current_draw_mode_;
682 688
683 private: 689 private:
684 // Rect indicating what was repainted/updated during update. 690 // Rect indicating what was repainted/updated during update.
685 // Note that plugin layers bypass this and leave it empty. 691 // Note that plugin layers bypass this and leave it empty.
686 // Uses layer (not content) space. 692 // Uses layer (not content) space.
687 gfx::RectF update_rect_; 693 gfx::RectF update_rect_;
688 694
695 bool includes_first_paint_invalidation_;
696
689 // This rect is in layer space. 697 // This rect is in layer space.
690 gfx::RectF damage_rect_; 698 gfx::RectF damage_rect_;
691 699
692 // Manages animations for this layer. 700 // Manages animations for this layer.
693 scoped_refptr<LayerAnimationController> layer_animation_controller_; 701 scoped_refptr<LayerAnimationController> layer_animation_controller_;
694 702
695 // Manages scrollbars for this layer 703 // Manages scrollbars for this layer
696 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; 704 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_;
697 705
698 scoped_ptr<ScrollbarSet> scrollbars_; 706 scoped_ptr<ScrollbarSet> scrollbars_;
699 707
700 ScopedPtrVector<CopyOutputRequest> copy_requests_; 708 ScopedPtrVector<CopyOutputRequest> copy_requests_;
701 709
702 // Group of properties that need to be computed based on the layer tree 710 // Group of properties that need to be computed based on the layer tree
703 // hierarchy before layers can be drawn. 711 // hierarchy before layers can be drawn.
704 DrawProperties<LayerImpl> draw_properties_; 712 DrawProperties<LayerImpl> draw_properties_;
705 713
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 714 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 715
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 716 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 717 };
710 718
711 } // namespace cc 719 } // namespace cc
712 720
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 721 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« cc/layers/layer.cc ('K') | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698