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

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

Issue 139383006: Pass allow_delayed_resize in CompositorFrameMetadata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass allow_delayed_resize in CompositorFrameMetadata Created 6 years, 11 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/output/compositor_frame_metadata.cc ('k') | cc/trees/layer_tree_host_common.h » ('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 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 root_layer, 806 root_layer,
807 device_viewport_size(), 807 device_viewport_size(),
808 gfx::Transform(), 808 gfx::Transform(),
809 device_scale_factor_, 809 device_scale_factor_,
810 page_scale_factor_, 810 page_scale_factor_,
811 page_scale_layer, 811 page_scale_layer,
812 GetRendererCapabilities().max_texture_size, 812 GetRendererCapabilities().max_texture_size,
813 settings_.can_use_lcd_text, 813 settings_.can_use_lcd_text,
814 can_render_to_separate_surface, 814 can_render_to_separate_surface,
815 settings_.layer_transforms_should_scale_layer_contents, 815 settings_.layer_transforms_should_scale_layer_contents,
816 &update_list); 816 &update_list,
817 NULL);
817 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 818 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
818 819
819 if (total_frames_used_for_lcd_text_metrics_ <= 820 if (total_frames_used_for_lcd_text_metrics_ <=
820 kTotalFramesToUseForLCDTextMetrics) { 821 kTotalFramesToUseForLCDTextMetrics) {
821 LayerTreeHostCommon::CallFunctionForSubtree( 822 LayerTreeHostCommon::CallFunctionForSubtree(
822 root_layer, 823 root_layer,
823 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback, 824 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback,
824 base::Unretained(this))); 825 base::Unretained(this)));
825 total_frames_used_for_lcd_text_metrics_++; 826 total_frames_used_for_lcd_text_metrics_++;
826 } 827 }
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 swap_promise_list_.push_back(swap_promise.Pass()); 1273 swap_promise_list_.push_back(swap_promise.Pass());
1273 } 1274 }
1274 1275
1275 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { 1276 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
1276 for (size_t i = 0; i < swap_promise_list_.size(); i++) 1277 for (size_t i = 0; i < swap_promise_list_.size(); i++)
1277 swap_promise_list_[i]->DidNotSwap(reason); 1278 swap_promise_list_[i]->DidNotSwap(reason);
1278 swap_promise_list_.clear(); 1279 swap_promise_list_.clear();
1279 } 1280 }
1280 1281
1281 } // namespace cc 1282 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698