OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/resources/tile_manager.h" | 5 #include "cc/resources/tile_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1225 DCHECK(tile_version.raster_task_); | 1225 DCHECK(tile_version.raster_task_); |
1226 orphan_raster_tasks_.push_back(tile_version.raster_task_); | 1226 orphan_raster_tasks_.push_back(tile_version.raster_task_); |
1227 tile_version.raster_task_ = NULL; | 1227 tile_version.raster_task_ = NULL; |
1228 | 1228 |
1229 if (was_canceled) { | 1229 if (was_canceled) { |
1230 ++update_visible_tiles_stats_.canceled_count; | 1230 ++update_visible_tiles_stats_.canceled_count; |
1231 resource_pool_->ReleaseResource(resource.Pass()); | 1231 resource_pool_->ReleaseResource(resource.Pass()); |
1232 return; | 1232 return; |
1233 } | 1233 } |
1234 | 1234 |
1235 client_->NotifyInitializedTiles(tile); | |
reveman
2014/04/14 20:03:07
I think it makes more sense to call this below whe
sohanjg
2014/04/15 10:03:48
Done.
| |
1236 | |
1235 ++update_visible_tiles_stats_.completed_count; | 1237 ++update_visible_tiles_stats_.completed_count; |
1236 | 1238 |
1237 tile_version.set_has_text(analysis.has_text); | 1239 tile_version.set_has_text(analysis.has_text); |
1238 if (analysis.is_solid_color) { | 1240 if (analysis.is_solid_color) { |
1239 tile_version.set_solid_color(analysis.solid_color); | 1241 tile_version.set_solid_color(analysis.solid_color); |
1240 resource_pool_->ReleaseResource(resource.Pass()); | 1242 resource_pool_->ReleaseResource(resource.Pass()); |
1241 } else { | 1243 } else { |
1242 tile_version.set_use_resource(); | 1244 tile_version.set_use_resource(); |
1243 tile_version.resource_ = resource.Pass(); | 1245 tile_version.resource_ = resource.Pass(); |
1244 | 1246 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1526 b_tile->priority(b_pair.second), | 1528 b_tile->priority(b_pair.second), |
1527 false /* prioritize low res */); | 1529 false /* prioritize low res */); |
1528 } | 1530 } |
1529 | 1531 |
1530 NOTREACHED(); | 1532 NOTREACHED(); |
1531 // Keep the compiler happy. | 1533 // Keep the compiler happy. |
1532 return false; | 1534 return false; |
1533 } | 1535 } |
1534 | 1536 |
1535 } // namespace cc | 1537 } // namespace cc |
OLD | NEW |