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

Unified Diff: cc/resources/tile_manager.h

Issue 855843002: [cc] replacing left out COMPILE_ASSERT with static_assert (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nits Created 5 years, 11 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 | « no previous file | no next file » | 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 f1d00fee884078742f669ac463371c3c3790f814..0cd7ecb9486b93d5bda9c0348f915a350303acf2 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -99,8 +99,9 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient,
// rasterizer.h
};
- COMPILE_ASSERT(NamedTaskSet::ALL == (kNumberOfTaskSets - 1),
- NamedTaskSet_ALL_not_kNumberOfTaskSets_minus_1);
+ static_assert(NamedTaskSet::ALL == (kNumberOfTaskSets - 1),
+ "NamedTaskSet::ALL should not be equal to kNumberOfTaskSets"
Mostyn Bramley-Moore 2015/01/20 09:54:57 This should read "should be equal to".
anujsharma 2015/01/20 09:56:24 oops sry..missed it.
+ "minus 1");
static scoped_ptr<TileManager> Create(TileManagerClient* client,
base::SequencedTaskRunner* task_runner,
« 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