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

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: +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 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 524 }
525 525
526 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 526 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
527 was_ever_ready_since_last_transform_animation_ = was_ready; 527 was_ever_ready_since_last_transform_animation_ = was_ready;
528 } 528 }
529 529
530 void NoteLayerPropertyChanged(); 530 void NoteLayerPropertyChanged();
531 531
532 void ClearLinksToOtherLayers(); 532 void ClearLinksToOtherLayers();
533 533
534 void set_has_will_change_transform_hint(bool has_will_change) {
535 has_will_change_transform_hint_ = has_will_change;
danakj 2016/05/05 00:09:49 You need to SetNeedsPushProperties?
vmpstr 2016/05/05 01:33:50 Done.
536 }
537 bool has_will_change_transform_hint() const {
538 return has_will_change_transform_hint_;
539 }
540
534 protected: 541 protected:
535 LayerImpl(LayerTreeImpl* layer_impl, 542 LayerImpl(LayerTreeImpl* layer_impl,
536 int id, 543 int id,
537 scoped_refptr<SyncedScrollOffset> scroll_offset); 544 scoped_refptr<SyncedScrollOffset> scroll_offset);
538 LayerImpl(LayerTreeImpl* layer_impl, int id); 545 LayerImpl(LayerTreeImpl* layer_impl, int id);
539 546
540 // Get the color and size of the layer's debug border. 547 // Get the color and size of the layer's debug border.
541 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 548 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
542 549
543 void AppendDebugBorderQuad(RenderPass* render_pass, 550 void AppendDebugBorderQuad(RenderPass* render_pass,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 PerformanceProperties<LayerImpl> performance_properties_; 669 PerformanceProperties<LayerImpl> performance_properties_;
663 670
664 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 671 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
665 owned_debug_info_; 672 owned_debug_info_;
666 base::trace_event::ConvertableToTraceFormat* debug_info_; 673 base::trace_event::ConvertableToTraceFormat* debug_info_;
667 std::unique_ptr<RenderSurfaceImpl> render_surface_; 674 std::unique_ptr<RenderSurfaceImpl> render_surface_;
668 675
669 bool scrolls_drawn_descendant_; 676 bool scrolls_drawn_descendant_;
670 // If true, the layer or one of its descendants has a touch handler. 677 // If true, the layer or one of its descendants has a touch handler.
671 bool layer_or_descendant_has_touch_handler_; 678 bool layer_or_descendant_has_touch_handler_;
672 679
danakj 2016/05/05 00:09:49 no whitespace
vmpstr 2016/05/05 01:33:50 Done.
680 bool has_will_change_transform_hint_;
681
673 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 682 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
674 }; 683 };
675 684
676 } // namespace cc 685 } // namespace cc
677 686
678 #endif // CC_LAYERS_LAYER_IMPL_H_ 687 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« cc/layers/layer.h ('K') | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698