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

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: review+fixup 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
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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 gfx::ScrollOffset ScrollOffsetForAnimation() const; 501 gfx::ScrollOffset ScrollOffsetForAnimation() const;
502 void OnFilterAnimated(const FilterOperations& filters); 502 void OnFilterAnimated(const FilterOperations& filters);
503 void OnOpacityAnimated(float opacity); 503 void OnOpacityAnimated(float opacity);
504 void OnTransformAnimated(const gfx::Transform& transform); 504 void OnTransformAnimated(const gfx::Transform& transform);
505 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 505 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
506 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 506 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
507 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 507 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
508 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); 508 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
509 bool HasActiveAnimationForTesting() const; 509 bool HasActiveAnimationForTesting() const;
510 510
511 void SetHasWillChangeTransformHint(bool has_will_change);
512 bool has_will_change_transform_hint() const {
513 return has_will_change_transform_hint_;
514 }
515
511 protected: 516 protected:
512 friend class LayerImpl; 517 friend class LayerImpl;
513 friend class TreeSynchronizer; 518 friend class TreeSynchronizer;
514 virtual ~Layer(); 519 virtual ~Layer();
515 Layer(); 520 Layer();
516 521
517 // These SetNeeds functions are in order of severity of update: 522 // These SetNeeds functions are in order of severity of update:
518 // 523 //
519 // Called when this layer has been modified in some way, but isn't sure 524 // Called when this layer has been modified in some way, but isn't sure
520 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers 525 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 bool masks_to_bounds_ : 1; 642 bool masks_to_bounds_ : 1;
638 bool contents_opaque_ : 1; 643 bool contents_opaque_ : 1;
639 bool double_sided_ : 1; 644 bool double_sided_ : 1;
640 bool should_flatten_transform_ : 1; 645 bool should_flatten_transform_ : 1;
641 bool use_parent_backface_visibility_ : 1; 646 bool use_parent_backface_visibility_ : 1;
642 bool use_local_transform_for_backface_visibility_ : 1; 647 bool use_local_transform_for_backface_visibility_ : 1;
643 bool should_check_backface_visibility_ : 1; 648 bool should_check_backface_visibility_ : 1;
644 bool force_render_surface_for_testing_ : 1; 649 bool force_render_surface_for_testing_ : 1;
645 bool has_render_surface_ : 1; 650 bool has_render_surface_ : 1;
646 bool subtree_property_changed_ : 1; 651 bool subtree_property_changed_ : 1;
652 bool has_will_change_transform_hint_ : 1;
647 Region non_fast_scrollable_region_; 653 Region non_fast_scrollable_region_;
648 Region touch_event_handler_region_; 654 Region touch_event_handler_region_;
649 gfx::PointF position_; 655 gfx::PointF position_;
650 SkColor background_color_; 656 SkColor background_color_;
651 SkColor safe_opaque_background_color_; 657 SkColor safe_opaque_background_color_;
652 float opacity_; 658 float opacity_;
653 SkXfermode::Mode blend_mode_; 659 SkXfermode::Mode blend_mode_;
654 // draw_blend_mode may be different than blend_mode_, 660 // draw_blend_mode may be different than blend_mode_,
655 // when a RenderSurface re-parents the layer's blend_mode. 661 // when a RenderSurface re-parents the layer's blend_mode.
656 SkXfermode::Mode draw_blend_mode_; 662 SkXfermode::Mode draw_blend_mode_;
(...skipping 23 matching lines...) Expand all
680 // These all act like draw properties, so don't need push properties. 686 // These all act like draw properties, so don't need push properties.
681 gfx::Rect visible_layer_rect_; 687 gfx::Rect visible_layer_rect_;
682 size_t num_unclipped_descendants_; 688 size_t num_unclipped_descendants_;
683 689
684 DISALLOW_COPY_AND_ASSIGN(Layer); 690 DISALLOW_COPY_AND_ASSIGN(Layer);
685 }; 691 };
686 692
687 } // namespace cc 693 } // namespace cc
688 694
689 #endif // CC_LAYERS_LAYER_H_ 695 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698