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

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: rebase+fix 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 } 506 }
507 507
508 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 508 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
509 was_ever_ready_since_last_transform_animation_ = was_ready; 509 was_ever_ready_since_last_transform_animation_ = was_ready;
510 } 510 }
511 511
512 void NoteLayerPropertyChanged(); 512 void NoteLayerPropertyChanged();
513 513
514 void ClearLinksToOtherLayers(); 514 void ClearLinksToOtherLayers();
515 515
516 void SetHasWillChangeTransformHint(bool has_will_change);
517 bool has_will_change_transform_hint() const {
518 return has_will_change_transform_hint_;
519 }
520
516 protected: 521 protected:
517 LayerImpl(LayerTreeImpl* layer_impl, 522 LayerImpl(LayerTreeImpl* layer_impl,
518 int id, 523 int id,
519 scoped_refptr<SyncedScrollOffset> scroll_offset); 524 scoped_refptr<SyncedScrollOffset> scroll_offset);
520 LayerImpl(LayerTreeImpl* layer_impl, int id); 525 LayerImpl(LayerTreeImpl* layer_impl, int id);
521 526
522 // Get the color and size of the layer's debug border. 527 // Get the color and size of the layer's debug border.
523 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 528 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
524 529
525 void AppendDebugBorderQuad(RenderPass* render_pass, 530 void AppendDebugBorderQuad(RenderPass* render_pass,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // hierarchy before layers can be drawn. 643 // hierarchy before layers can be drawn.
639 DrawProperties draw_properties_; 644 DrawProperties draw_properties_;
640 PerformanceProperties<LayerImpl> performance_properties_; 645 PerformanceProperties<LayerImpl> performance_properties_;
641 646
642 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 647 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
643 owned_debug_info_; 648 owned_debug_info_;
644 base::trace_event::ConvertableToTraceFormat* debug_info_; 649 base::trace_event::ConvertableToTraceFormat* debug_info_;
645 std::unique_ptr<RenderSurfaceImpl> render_surface_; 650 std::unique_ptr<RenderSurfaceImpl> render_surface_;
646 651
647 bool scrolls_drawn_descendant_; 652 bool scrolls_drawn_descendant_;
653 bool has_will_change_transform_hint_;
648 654
649 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 655 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
650 }; 656 };
651 657
652 } // namespace cc 658 } // namespace cc
653 659
654 #endif // CC_LAYERS_LAYER_IMPL_H_ 660 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « 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