Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Unified Diff: samples/o3d-webgl/base.js

Issue 1745002: Incremental progress toward archive loading in o3d-webgl. Implemented... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/o3d-webgl/archive_request.js ('k') | samples/o3d-webgl/file_request.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl/base.js
===================================================================
--- samples/o3d-webgl/base.js (revision 45126)
+++ samples/o3d-webgl/base.js (working copy)
@@ -121,6 +121,19 @@
};
/**
+ * Filters any "o3d." prefix from the given type name.
+ * @param {string} type_name The type name to filter.
+ * @return {string} Filtered type name.
+ * @private
+ */
+o3d.filterTypeName_ = function(type_name) {
+ if (type_name.length >= 4 && type_name.substr(0, 4) == 'o3d.') {
+ type_name = type_name.substr(4);
+ }
+ return type_name;
+};
+
+/**
* Includes the file indicated by the rule by adding a script tag.
* @param {string} rule Rule to include, in the form o3d.package.part.
*/
@@ -220,5 +233,6 @@
o3d.include('shape');
o3d.include('effect');
o3d.include('material');
+o3d.include('archive_request');
« no previous file with comments | « samples/o3d-webgl/archive_request.js ('k') | samples/o3d-webgl/file_request.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698