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

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

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+fix Created 4 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 | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 gfx::ScrollOffset ScrollOffsetForAnimation() const; 493 gfx::ScrollOffset ScrollOffsetForAnimation() const;
494 void OnFilterAnimated(const FilterOperations& filters); 494 void OnFilterAnimated(const FilterOperations& filters);
495 void OnOpacityAnimated(float opacity); 495 void OnOpacityAnimated(float opacity);
496 void OnTransformAnimated(const gfx::Transform& transform); 496 void OnTransformAnimated(const gfx::Transform& transform);
497 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 497 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
498 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 498 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
499 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 499 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
500 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); 500 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
501 bool HasActiveAnimationForTesting() const; 501 bool HasActiveAnimationForTesting() const;
502 502
503 void SetHasWillChangeTransformHint(bool has_will_change);
504 bool has_will_change_transform_hint() const {
505 return has_will_change_transform_hint_;
506 }
507
503 protected: 508 protected:
504 friend class LayerImpl; 509 friend class LayerImpl;
505 friend class TreeSynchronizer; 510 friend class TreeSynchronizer;
506 virtual ~Layer(); 511 virtual ~Layer();
507 Layer(); 512 Layer();
508 513
509 // These SetNeeds functions are in order of severity of update: 514 // These SetNeeds functions are in order of severity of update:
510 // 515 //
511 // Called when this layer has been modified in some way, but isn't sure 516 // Called when this layer has been modified in some way, but isn't sure
512 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers 517 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 bool hide_layer_and_subtree_ : 1; 633 bool hide_layer_and_subtree_ : 1;
629 bool masks_to_bounds_ : 1; 634 bool masks_to_bounds_ : 1;
630 bool contents_opaque_ : 1; 635 bool contents_opaque_ : 1;
631 bool double_sided_ : 1; 636 bool double_sided_ : 1;
632 bool should_flatten_transform_ : 1; 637 bool should_flatten_transform_ : 1;
633 bool use_parent_backface_visibility_ : 1; 638 bool use_parent_backface_visibility_ : 1;
634 bool use_local_transform_for_backface_visibility_ : 1; 639 bool use_local_transform_for_backface_visibility_ : 1;
635 bool should_check_backface_visibility_ : 1; 640 bool should_check_backface_visibility_ : 1;
636 bool force_render_surface_for_testing_ : 1; 641 bool force_render_surface_for_testing_ : 1;
637 bool subtree_property_changed_ : 1; 642 bool subtree_property_changed_ : 1;
643 bool has_will_change_transform_hint_ : 1;
638 Region non_fast_scrollable_region_; 644 Region non_fast_scrollable_region_;
639 Region touch_event_handler_region_; 645 Region touch_event_handler_region_;
640 gfx::PointF position_; 646 gfx::PointF position_;
641 SkColor background_color_; 647 SkColor background_color_;
642 SkColor safe_opaque_background_color_; 648 SkColor safe_opaque_background_color_;
643 float opacity_; 649 float opacity_;
644 SkXfermode::Mode blend_mode_; 650 SkXfermode::Mode blend_mode_;
645 // draw_blend_mode may be different than blend_mode_, 651 // draw_blend_mode may be different than blend_mode_,
646 // when a RenderSurface re-parents the layer's blend_mode. 652 // when a RenderSurface re-parents the layer's blend_mode.
647 SkXfermode::Mode draw_blend_mode_; 653 SkXfermode::Mode draw_blend_mode_;
(...skipping 23 matching lines...) Expand all
671 // These all act like draw properties, so don't need push properties. 677 // These all act like draw properties, so don't need push properties.
672 gfx::Rect visible_layer_rect_; 678 gfx::Rect visible_layer_rect_;
673 size_t num_unclipped_descendants_; 679 size_t num_unclipped_descendants_;
674 680
675 DISALLOW_COPY_AND_ASSIGN(Layer); 681 DISALLOW_COPY_AND_ASSIGN(Layer);
676 }; 682 };
677 683
678 } // namespace cc 684 } // namespace cc
679 685
680 #endif // CC_LAYERS_LAYER_H_ 686 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698