| 954 | } |
| 955 | |
| 956 | static void SetTileProperties(Properties &props, const string &prefix, |
| 957 | const deque<const slg::Tile *> &tiles) { |
| 958 | props.Set(Property(prefix + ".count")((unsigned int)tiles.size())); |
| 959 | Property tileCoordProp(prefix + ".coords"); |
| 960 | Property tilePassProp(prefix + ".pass"); |
| 961 | Property tilePendingPassesProp(prefix + ".pendingpasses"); |
| 962 | Property tileErrorProp(prefix + ".error"); |
| 963 | |
| 964 | BOOST_FOREACH(const slg::Tile *tile, tiles) { |
| 965 | tileCoordProp.Add(tile->coord.x).Add(tile->coord.y); |
| 966 | tilePassProp.Add(tile->pass); |
| 967 | tilePendingPassesProp.Add(tile->pendingPasses); |
| 968 | tileErrorProp.Add(tile->error); |
| 969 | } |
| 970 | |
| 971 | props.Set(tileCoordProp); |
| 972 | props.Set(tilePassProp); |
| 973 | props.Set(tilePendingPassesProp); |
| 974 | props.Set(tileErrorProp); |
| 975 | } |
| 976 | |
| 977 | void RenderSessionImpl::UpdateStats() { |
| 978 | // It is not really correct to call UpdateStats() outside a Start()/Stop() |
no test coverage detected