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

Side by Side Diff: cc/test/fake_tile_manager.cc

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits updated. Created 6 years, 4 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
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/test/fake_tile_manager.h" 5 #include "cc/test/fake_tile_manager.h"
6 6
7 #include <deque> 7 #include <deque>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "cc/resources/rasterizer.h" 10 #include "cc/resources/rasterizer.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 tiles_for_raster.end(), 93 tiles_for_raster.end(),
94 tile) != tiles_for_raster.end(); 94 tile) != tiles_for_raster.end();
95 } 95 }
96 96
97 void FakeTileManager::DidFinishRunningTasksForTesting() { 97 void FakeTileManager::DidFinishRunningTasksForTesting() {
98 DidFinishRunningTasks(); 98 DidFinishRunningTasks();
99 } 99 }
100 100
101 void FakeTileManager::Release(Tile* tile) { 101 void FakeTileManager::Release(Tile* tile) {
102 TileManager::Release(tile); 102 TileManager::Release(tile);
103
104 FreeResourcesForReleasedTiles();
103 CleanUpReleasedTiles(); 105 CleanUpReleasedTiles();
104 } 106 }
105 107
106 } // namespace cc 108 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698