Fixes glfwGetProcAddress calls that were causing a ReferenceError exception, trying to call unexisting function _getProcAddress.
On calls to glfwSetWindowSizeCallback, calls the provided callback function, as described by glfw documentation: When a callback function is set, it will be called with the current window size before this function returns.
Use typed arrays instead of normal JS arrays to back files in the MEMFS filesystem for improved performance, especially when backing to IDBFS.
Convert MEMFS files to typed arrays before storing to IDBFS for better IDBFS performance. Add testing for -s MEMFS_APPEND_TO_TYPED_ARRAYS=1 option.
Fix test_fwrite_0 syntax error in s_ modes after previous change.
add emscripten_get_preloaded_image_data
Add missing return
Add include for FILE*
Fix MEMFS.getFileDataAsTypedArray to be strict and not return unused capacity padding bytes.
changes from review
Simplify typed array creation code in MEMFS.
In tools/ffdb.py, compress the zip files before uploading to improve packaged app installation times.
Improve error reporting in tools/ffdb.py
Fix issue in tools/ffdb.py where installing an app using a relative path would place the files in wrong directory inside the zip file, causing the install to fail after upload is finished.
Add support to tools/ffdb.py to perform B2G 2.0 bulk data transfers for binary data uploads. Gives about 4MB/sec data uploads as opposed to ~350KB/sec on old B2G 1.4 devices.
Add support to tools/ffdb.py to take a screenshot of the FFOS device screen.
Remember to free up resources used by Devtools connection for ffdb screenshot capture. Report out captured image dimensions for better error detection.
Add options --host, --port, --verbose and --simulator to tools/ffdb.py
Adds unit test for glfwGetProcAddress.
fix relative paths