Add WebGl2 benchmarking example
This makes it so that we can specify a custom HTML shell file for the
emcc_binary rule.
Change-Id: I919e917d6fd92fed6ab77775c5373d2886edacca
diff --git a/build_tests/BUILD b/build_tests/BUILD
index 07b84fe..bf6e9ee 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -15,12 +15,15 @@
emcc_binary(
name = "webgl2.html",
- srcs = ["webgl2_draw_packed_triangle.c"],
+ srcs = ["webgl2_benchmark.cc"],
+ html_shell = "minimal_shell.html",
# Enable WEBGL2 (-s is used by the emscripten
# compiler to specify sundry options).
linkopts = [
"-s",
"USE_WEBGL2=1",
+ "-s",
+ "TOTAL_MEMORY=" + repr(256 * 1024 * 1024),
],
)