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

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: +will-change 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 set_has_will_change_transform_hint(bool has_will_change) {
511 has_will_change_transform_hint_ = has_will_change;
danakj 2016/05/05 00:09:49 Don't you need to SetNeedsCommit? (which will SetN
vmpstr 2016/05/05 01:33:50 Done.
512 }
513 bool has_will_change_transform_hint() const {
514 return has_will_change_transform_hint_;
515 }
516
510 protected: 517 protected:
511 friend class LayerImpl; 518 friend class LayerImpl;
512 friend class TreeSynchronizer; 519 friend class TreeSynchronizer;
513 virtual ~Layer(); 520 virtual ~Layer();
514 Layer(); 521 Layer();
515 522
516 // These SetNeeds functions are in order of severity of update: 523 // These SetNeeds functions are in order of severity of update:
517 // 524 //
518 // Called when this layer has been modified in some way, but isn't sure 525 // 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 526 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; 680 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
674 681
675 base::Closure did_scroll_callback_; 682 base::Closure did_scroll_callback_;
676 683
677 PaintProperties paint_properties_; 684 PaintProperties paint_properties_;
678 685
679 // 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.
680 gfx::Rect visible_layer_rect_; 687 gfx::Rect visible_layer_rect_;
681 size_t num_unclipped_descendants_; 688 size_t num_unclipped_descendants_;
682 689
690 bool has_will_change_transform_hint_;
danakj 2016/05/05 00:09:49 group this with the other bools
vmpstr 2016/05/05 01:33:50 Done.
691
683 DISALLOW_COPY_AND_ASSIGN(Layer); 692 DISALLOW_COPY_AND_ASSIGN(Layer);
684 }; 693 };
685 694
686 } // namespace cc 695 } // namespace cc
687 696
688 #endif // CC_LAYERS_LAYER_H_ 697 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698