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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. Created 3 years, 9 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/test/stub_layer_tree_host_client.h ('k') | cc/trees/layer_tree_host.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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; 499 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
500 500
501 private: 501 private:
502 friend class LayerTreeHostSerializationTest; 502 friend class LayerTreeHostSerializationTest;
503 503
504 // This is the number of consecutive frames in which we want the content to be 504 // This is the number of consecutive frames in which we want the content to be
505 // suitable for GPU rasterization before re-enabling it. 505 // suitable for GPU rasterization before re-enabling it.
506 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; 506 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 };
507 507
508 void ApplyViewportDeltas(ScrollAndScaleSet* info); 508 void ApplyViewportDeltas(ScrollAndScaleSet* info);
509 void RecordWheelAndTouchScrollingCount(ScrollAndScaleSet* info);
509 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 510 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
510 void InitializeProxy(std::unique_ptr<Proxy> proxy); 511 void InitializeProxy(std::unique_ptr<Proxy> proxy);
511 512
512 bool DoUpdateLayers(Layer* root_layer); 513 bool DoUpdateLayers(Layer* root_layer);
513 514
514 void UpdateDeferCommitsInternal(); 515 void UpdateDeferCommitsInternal();
515 516
516 const CompositorMode compositor_mode_; 517 const CompositorMode compositor_mode_;
517 518
518 std::unique_ptr<UIResourceManager> ui_resource_manager_; 519 std::unique_ptr<UIResourceManager> ui_resource_manager_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 622
622 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> 623 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>>
623 queued_image_decodes_; 624 queued_image_decodes_;
624 625
625 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 626 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
626 }; 627 };
627 628
628 } // namespace cc 629 } // namespace cc
629 630
630 #endif // CC_TREES_LAYER_TREE_HOST_H_ 631 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/stub_layer_tree_host_client.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698