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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2317913002: cc: Change preraster/predecode split to be half of max skewport extent. (Closed)
Patch Set: compile fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index ed30f468df20d007e762e907d9af49c54afd01d3..e0968d19392183453a4e51cce3b7a5d182445889 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -308,8 +308,7 @@ RasterTaskCompletionStatsAsValue(const RasterTaskCompletionStats& stats) {
TileManager::TileManager(TileManagerClient* client,
base::SequencedTaskRunner* task_runner,
size_t scheduled_raster_task_limit,
- bool use_partial_raster,
- int max_preraster_distance_in_screen_pixels)
+ bool use_partial_raster)
: client_(client),
task_runner_(task_runner),
resource_pool_(nullptr),
@@ -330,8 +329,6 @@ TileManager::TileManager(TileManagerClient* client,
has_scheduled_tile_tasks_(false),
prepare_tiles_count_(0u),
next_tile_id_(0u),
- max_preraster_distance_in_screen_pixels_(
- max_preraster_distance_in_screen_pixels),
task_set_finished_weak_ptr_factory_(this) {}
TileManager::~TileManager() {
@@ -656,8 +653,7 @@ TileManager::PrioritizedWorkToSchedule TileManager::AssignGpuMemoryToTiles() {
// Prepaint tiles that are far away are only processed for images.
if (!tile->required_for_activation() && !tile->required_for_draw() &&
- priority.distance_to_visible >
- max_preraster_distance_in_screen_pixels_) {
+ prioritized_tile.is_process_for_images_only()) {
work_to_schedule.tiles_to_process_for_images.push_back(prioritized_tile);
continue;
}
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698