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

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

Powered by Google App Engine
This is Rietveld 408576698