summaryrefslogtreecommitdiffstats
path: root/o3d/samples
diff options
context:
space:
mode:
authorapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 19:49:35 +0000
committerapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 19:49:35 +0000
commit91240c947358b33cc19c0923a06d116ab36737dd (patch)
tree7897c99ad9b41d7735c7a42e0ea75fe6f76760b3 /o3d/samples
parent2e25a9f4152a90a179ad37206bff79e1198379d7 (diff)
downloadchromium_src-91240c947358b33cc19c0923a06d116ab36737dd.zip
chromium_src-91240c947358b33cc19c0923a06d116ab36737dd.tar.gz
chromium_src-91240c947358b33cc19c0923a06d116ab36737dd.tar.bz2
Asynchronous tick now uses NPN_PluginAsyncCall.URL streaming callbacks are now also asynchronous.Implemented NPN_PluginAsyncCall for IE.Allowed WM_PAINT handler to be reentered because it no longer calls into the browser (except to schedule an asynchronous tick if none is pending).Fixed a bug where the EventManager would crash if an event callback called cleanUp on the client.Cleanup destroys all the packs. Doing this in NPP_Destroy seems to make Chrome timeout and fail to load the next page.Tar and GZ decoding happens on a new thread.
Review URL: http://codereview.chromium.org/155733 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples')
-rw-r--r--o3d/samples/animated-scene.html1
-rw-r--r--o3d/samples/o3djs/io.js4
2 files changed, 2 insertions, 3 deletions
diff --git a/o3d/samples/animated-scene.html b/o3d/samples/animated-scene.html
index b60f286..c9e4b72 100644
--- a/o3d/samples/animated-scene.html
+++ b/o3d/samples/animated-scene.html
@@ -60,6 +60,7 @@ o3djs.require('o3djs.scene');
// Events
// init() once the page has finished loading.
window.onload = init;
+window.onunload = unload;
// global variables
var g_o3d;
diff --git a/o3d/samples/o3djs/io.js b/o3d/samples/o3djs/io.js
index 2bd1a3a..690bd2c 100644
--- a/o3d/samples/o3djs/io.js
+++ b/o3d/samples/o3djs/io.js
@@ -494,9 +494,7 @@ o3djs.io.loadArchiveAdvanced = function(pack,
var request = pack.createArchiveRequest();
var loadInfo = o3djs.io.createLoadInfo(request, true);
request.open('GET', url);
- request.onfileavailable = function() {
- onFileAvailable(/** @type {!o3d.RawData} */ (request.data));
- };
+ request.onfileavailable = onFileAvailable;
/**
* @ignore
*/