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

Side by Side Diff: cc/layers/layer_impl.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 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 519 }
520 520
521 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 521 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
522 was_ever_ready_since_last_transform_animation_ = was_ready; 522 was_ever_ready_since_last_transform_animation_ = was_ready;
523 } 523 }
524 524
525 void NoteLayerPropertyChanged(); 525 void NoteLayerPropertyChanged();
526 526
527 void ClearLinksToOtherLayers(); 527 void ClearLinksToOtherLayers();
528 528
529 void SetHasWillChangeTransformHint(bool has_will_change);
530 bool has_will_change_transform_hint() const {
531 return has_will_change_transform_hint_;
532 }
533
529 protected: 534 protected:
530 LayerImpl(LayerTreeImpl* layer_impl, 535 LayerImpl(LayerTreeImpl* layer_impl,
531 int id, 536 int id,
532 scoped_refptr<SyncedScrollOffset> scroll_offset); 537 scoped_refptr<SyncedScrollOffset> scroll_offset);
533 LayerImpl(LayerTreeImpl* layer_impl, int id); 538 LayerImpl(LayerTreeImpl* layer_impl, int id);
534 539
535 // Get the color and size of the layer's debug border. 540 // Get the color and size of the layer's debug border.
536 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 541 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
537 542
538 void AppendDebugBorderQuad(RenderPass* render_pass, 543 void AppendDebugBorderQuad(RenderPass* render_pass,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 PerformanceProperties<LayerImpl> performance_properties_; 658 PerformanceProperties<LayerImpl> performance_properties_;
654 659
655 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 660 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
656 owned_debug_info_; 661 owned_debug_info_;
657 base::trace_event::ConvertableToTraceFormat* debug_info_; 662 base::trace_event::ConvertableToTraceFormat* debug_info_;
658 std::unique_ptr<RenderSurfaceImpl> render_surface_; 663 std::unique_ptr<RenderSurfaceImpl> render_surface_;
659 664
660 bool scrolls_drawn_descendant_; 665 bool scrolls_drawn_descendant_;
661 // If true, the layer or one of its descendants has a touch handler. 666 // If true, the layer or one of its descendants has a touch handler.
662 bool layer_or_descendant_has_touch_handler_; 667 bool layer_or_descendant_has_touch_handler_;
668 bool has_will_change_transform_hint_;
663 669
664 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 670 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
665 }; 671 };
666 672
667 } // namespace cc 673 } // namespace cc
668 674
669 #endif // CC_LAYERS_LAYER_IMPL_H_ 675 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698