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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 1494273002: CFI: fix invalid cast in tile_manager_unittest.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 795118f315dae9b78de34806cdeae6edc57e5fbc..2c69999b235a91880aff8e07dc63f6a6682415ce 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1730,7 +1730,7 @@ class CancellingTileTaskRunner : public FakeTileTaskRunner {
// Just call CompleteOnOriginThread on each item in the queue. As none of
// these items have run yet, they will be treated as cancelled tasks.
for (const auto& node : graph->nodes) {
- static_cast<RasterTask*>(node.task)->CompleteOnOriginThread(this);
+ static_cast<TileTask*>(node.task)->CompleteOnOriginThread(this);
}
}
};
@@ -1805,7 +1805,7 @@ class VerifyResourceContentIdTileTaskRunner : public FakeTileTaskRunner {
void ScheduleTasks(TaskGraph* graph) override {
for (const auto& node : graph->nodes) {
- RasterTask* task = static_cast<RasterTask*>(node.task);
+ TileTask* task = static_cast<TileTask*>(node.task);
// Triggers a call to AcquireBufferForRaster.
task->ScheduleOnOriginThread(this);
// Calls TileManager as though task was cancelled.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698