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

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

Issue 24280009: Move tile-free-software render surface disabling to UpdateDrawProperties. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common.h » ('j') | cc/trees/layer_tree_host_common.cc » ('J')
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 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 UpdateHudLayer(); 758 UpdateHudLayer();
759 759
760 Layer* root_scroll = FindFirstScrollableLayer(root_layer); 760 Layer* root_scroll = FindFirstScrollableLayer(root_layer);
761 761
762 if (hud_layer_) { 762 if (hud_layer_) {
763 hud_layer_->PrepareForCalculateDrawProperties( 763 hud_layer_->PrepareForCalculateDrawProperties(
764 device_viewport_size(), device_scale_factor_); 764 device_viewport_size(), device_scale_factor_);
765 } 765 }
766 766
767 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); 767 TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps");
768 bool can_render_to_separate_surface = true;
768 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs( 769 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs(
769 root_layer, 770 root_layer,
770 device_viewport_size(), 771 device_viewport_size(),
771 gfx::Transform(), 772 gfx::Transform(),
772 device_scale_factor_, 773 device_scale_factor_,
773 page_scale_factor_, 774 page_scale_factor_,
774 root_scroll ? root_scroll->parent() : NULL, 775 root_scroll ? root_scroll->parent() : NULL,
775 GetRendererCapabilities().max_texture_size, 776 GetRendererCapabilities().max_texture_size,
776 settings_.can_use_lcd_text, 777 settings_.can_use_lcd_text,
778 can_render_to_separate_surface,
777 settings_.layer_transforms_should_scale_layer_contents, 779 settings_.layer_transforms_should_scale_layer_contents,
778 &update_list); 780 &update_list);
779 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 781 LayerTreeHostCommon::CalculateDrawProperties(&inputs);
780 782
781 if (total_frames_used_for_lcd_text_metrics_ <= 783 if (total_frames_used_for_lcd_text_metrics_ <=
782 kTotalFramesToUseForLCDTextMetrics) { 784 kTotalFramesToUseForLCDTextMetrics) {
783 LayerTreeHostCommon::CallFunctionForSubtree( 785 LayerTreeHostCommon::CallFunctionForSubtree(
784 root_layer, 786 root_layer,
785 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback, 787 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback,
786 base::Unretained(this))); 788 base::Unretained(this)));
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 request.type = UIResourceRequest::UIResourceCreate; 1184 request.type = UIResourceRequest::UIResourceCreate;
1183 request.id = uid; 1185 request.id = uid;
1184 bool resource_lost = true; 1186 bool resource_lost = true;
1185 request.bitmap = iter->second->GetBitmap(uid, resource_lost); 1187 request.bitmap = iter->second->GetBitmap(uid, resource_lost);
1186 DCHECK(request.bitmap.get()); 1188 DCHECK(request.bitmap.get());
1187 ui_resource_request_queue_.push_back(request); 1189 ui_resource_request_queue_.push_back(request);
1188 } 1190 }
1189 } 1191 }
1190 1192
1191 } // namespace cc 1193 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common.h » ('j') | cc/trees/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698