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

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

Issue 13859012: cc: Remove cheapness estimator usage from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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
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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 1359
1360 scoped_ptr<ResourceProvider> resource_provider = ResourceProvider::Create( 1360 scoped_ptr<ResourceProvider> resource_provider = ResourceProvider::Create(
1361 output_surface.get(), settings_.highp_threshold_min); 1361 output_surface.get(), settings_.highp_threshold_min);
1362 if (!resource_provider) 1362 if (!resource_provider)
1363 return false; 1363 return false;
1364 1364
1365 if (settings_.impl_side_painting) { 1365 if (settings_.impl_side_painting) {
1366 tile_manager_.reset(new TileManager(this, 1366 tile_manager_.reset(new TileManager(this,
1367 resource_provider.get(), 1367 resource_provider.get(),
1368 settings_.num_raster_threads, 1368 settings_.num_raster_threads,
1369 settings_.use_cheapness_estimator,
1370 settings_.use_color_estimator, 1369 settings_.use_color_estimator,
1371 settings_.prediction_benchmarking, 1370 settings_.prediction_benchmarking,
1372 rendering_stats_instrumentation_)); 1371 rendering_stats_instrumentation_));
1373 } 1372 }
1374 1373
1375 if (output_surface->capabilities().has_parent_compositor) { 1374 if (output_surface->capabilities().has_parent_compositor) {
1376 renderer_ = DelegatingRenderer::Create(this, output_surface.get(), 1375 renderer_ = DelegatingRenderer::Create(this, output_surface.get(),
1377 resource_provider.get()); 1376 resource_provider.get());
1378 } else if (output_surface->context3d()) { 1377 } else if (output_surface->context3d()) {
1379 renderer_ = GLRenderer::Create(this, 1378 renderer_ = GLRenderer::Create(this,
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 } 2127 }
2129 2128
2130 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { 2129 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) {
2131 if (debug_state_.continuous_painting != debug_state.continuous_painting) 2130 if (debug_state_.continuous_painting != debug_state.continuous_painting)
2132 paint_time_counter_->ClearHistory(); 2131 paint_time_counter_->ClearHistory();
2133 2132
2134 debug_state_ = debug_state; 2133 debug_state_ = debug_state;
2135 } 2134 }
2136 2135
2137 } // namespace cc 2136 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698