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

Unified Diff: cc/resources/tile_manager.h

Issue 793573006: Refactoring for merging ManagedTileState into Tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a nit Created 6 years 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/resources/tile_draw_info.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index a5005bf7f3cce2da6d11082e5567633af2468a1a..7a1e4609e0e469fa7d546cc9aff95d7ca4f64b54 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -17,12 +17,12 @@
#include "cc/base/ref_counted_managed.h"
#include "cc/base/unique_notifier.h"
#include "cc/resources/eviction_tile_priority_queue.h"
-#include "cc/resources/managed_tile_state.h"
#include "cc/resources/memory_history.h"
#include "cc/resources/raster_source.h"
#include "cc/resources/raster_tile_priority_queue.h"
#include "cc/resources/resource_pool.h"
#include "cc/resources/tile.h"
+#include "cc/resources/tile_draw_info.h"
#include "cc/resources/tile_task_runner.h"
namespace base {
@@ -130,10 +130,8 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient,
void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) {
for (size_t i = 0; i < tiles.size(); ++i) {
- ManagedTileState& mts = tiles[i]->managed_state();
-
- mts.draw_info.resource_ =
- resource_pool_->AcquireResource(tiles[i]->size());
+ TileDrawInfo& draw_info = tiles[i]->draw_info();
+ draw_info.resource_ = resource_pool_->AcquireResource(tiles[i]->size());
}
}
« no previous file with comments | « cc/resources/tile_draw_info.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698