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

Unified Diff: cc/trees/layer_tree_host.h

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_sorter_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index d41e73df07482f68fc3922b86576d79e1db326ac..b17b5a4c4a77e2f3f943920bd30e68c95a880bbe 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -113,7 +113,6 @@ class CC_EXPORT LayerTreeHost {
void WillBeginMainFrame();
void DidBeginMainFrame();
void BeginMainFrame(const BeginFrameArgs& args);
- void BeginMainFrameNotExpectedSoon();
void AnimateLayers(base::TimeTicks monotonic_frame_begin_time);
void DidStopFlinging();
void Layout();
@@ -448,6 +447,20 @@ class CC_EXPORT LayerTreeHost {
bool in_paint_layer_contents_;
+ static const int kTotalFramesToUseForLCDTextMetrics = 50;
+ int total_frames_used_for_lcd_text_metrics_;
+
+ struct LCDTextMetrics {
+ LCDTextMetrics()
+ : total_num_cc_layers(0),
+ total_num_cc_layers_can_use_lcd_text(0),
+ total_num_cc_layers_will_use_lcd_text(0) {}
+
+ int64 total_num_cc_layers;
+ int64 total_num_cc_layers_can_use_lcd_text;
+ int64 total_num_cc_layers_will_use_lcd_text;
+ };
+ LCDTextMetrics lcd_text_metrics_;
int id_;
bool next_commit_forces_redraw_;
« no previous file with comments | « cc/trees/layer_sorter_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698