Index: tracing/tracing/extras/chrome/cc/raster_task.html |
diff --git a/tracing/tracing/extras/chrome/cc/raster_task.html b/tracing/tracing/extras/chrome/cc/raster_task.html |
index af2e41f62c7a85765f96249d92cbe279b465c215..14818080ec33548d41cd88ed4e7ec2c1436e103a 100644 |
--- a/tracing/tracing/extras/chrome/cc/raster_task.html |
+++ b/tracing/tracing/extras/chrome/cc/raster_task.html |
@@ -29,22 +29,23 @@ tr.exportTo('tr.e.cc', function() { |
]; |
function getTileFromRasterTaskSlice(slice) { |
- if (!(isSliceDoingRasterization(slice) || isSliceDoingAnalysis(slice))) |
+ if (!(isSliceDoingRasterization(slice) || isSliceDoingAnalysis(slice))) { |
return undefined; |
+ } |
var tileData; |
- if (slice.args.data) |
+ if (slice.args.data) { |
tileData = slice.args.data; |
- else |
+ } else { |
tileData = slice.args.tileData; |
- if (tileData === undefined) |
- return undefined; |
- if (tileData.tile_id) |
- return tileData.tile_id; |
+ } |
+ if (tileData === undefined) return undefined; |
+ if (tileData.tile_id) return tileData.tile_id; |
var tile = tileData.tileId; |
- if (!(tile instanceof tr.e.cc.TileSnapshot)) |
+ if (!(tile instanceof tr.e.cc.TileSnapshot)) { |
return undefined; |
+ } |
return tileData.tileId; |
} |