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

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: use of fieldbit instead of normal enum 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
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; 494 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
495 495
496 private: 496 private:
497 friend class LayerTreeHostSerializationTest; 497 friend class LayerTreeHostSerializationTest;
498 498
499 // This is the number of consecutive frames in which we want the content to be 499 // This is the number of consecutive frames in which we want the content to be
500 // suitable for GPU rasterization before re-enabling it. 500 // suitable for GPU rasterization before re-enabling it.
501 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; 501 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 };
502 502
503 void ApplyViewportDeltas(ScrollAndScaleSet* info); 503 void ApplyViewportDeltas(ScrollAndScaleSet* info);
504 void RecordWheelAndTouchScrollingCount(ScrollAndScaleSet* info);
504 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 505 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
505 void InitializeProxy(std::unique_ptr<Proxy> proxy); 506 void InitializeProxy(std::unique_ptr<Proxy> proxy);
506 507
507 bool DoUpdateLayers(Layer* root_layer); 508 bool DoUpdateLayers(Layer* root_layer);
508 void UpdateHudLayer(); 509 void UpdateHudLayer();
509 510
510 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); 511 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time);
511 512
512 void CalculateLCDTextMetricsCallback(Layer* layer); 513 void CalculateLCDTextMetricsCallback(Layer* layer);
513 514
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 618
618 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> 619 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>>
619 queued_image_decodes_; 620 queued_image_decodes_;
620 621
621 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 622 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
622 }; 623 };
623 624
624 } // namespace cc 625 } // namespace cc
625 626
626 #endif // CC_TREES_LAYER_TREE_HOST_H_ 627 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698