From a8fffd91b218b1246da24694226a9398ec0d248b Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Fri, 2 Sep 2016 08:44:27 -0400 Subject: [PATCH] Fix up buffer benchmarks --- bench/lib/run_tile_series.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bench/lib/run_tile_series.js b/bench/lib/run_tile_series.js index 86a0ade768e..a265117279b 100644 --- a/bench/lib/run_tile_series.js +++ b/bench/lib/run_tile_series.js @@ -78,20 +78,20 @@ function preloadAssets(stylesheet, perTileCallback, callback) { var style = new Style(stylesheet); var worker = new Worker({addEventListener: function() {} }); - worker['set layers'](stylesheet.layers); - var layerFamilies = worker.layerFamilies; + worker['set layers'](0, stylesheet.layers); + var layerFamilies = worker.layerFamilies[0]; style.once('load', function() { var assets = { getGlyphs: function (params, callback) { - style['get glyphs'](params, function(err, glyphs) { + style['get glyphs'](null, params, function(err, glyphs) { cache.glyphs[JSON.stringify(params)] = glyphs; callback(err, glyphs); }); }, getIcons: function (params, callback) { - style['get icons'](params, function(err, icons) { + style['get icons'](null, params, function(err, icons) { cache.icons[JSON.stringify(params)] = icons; callback(err, icons); });