Index: chrome/browser/android/vr_shell/gltf_parser.h |
diff --git a/chrome/browser/android/vr_shell/gltf_parser.h b/chrome/browser/android/vr_shell/gltf_parser.h |
index 6aee8afd417ad39b71340e8255deb8b1e73f4a20..3c4406f6ed6a1b1951c57c80f5bac5a7ec569961 100644 |
--- a/chrome/browser/android/vr_shell/gltf_parser.h |
+++ b/chrome/browser/android/vr_shell/gltf_parser.h |
@@ -67,6 +67,16 @@ class GltfParser { |
DISALLOW_COPY_AND_ASSIGN(GltfParser); |
}; |
+class BinaryGltfParser { |
+ public: |
+ // Note: If your glTF references external files, this function will perform |
+ // IO, and a base path must be specified. |
+ static std::unique_ptr<gltf::Asset> Parse( |
+ base::StringPiece glb_content, |
+ std::vector<std::unique_ptr<gltf::Buffer>>* buffers, |
+ const base::FilePath& path = base::FilePath()); |
+}; |
+ |
} // namespace vr_shell |
#endif // CHROME_BROWSER_ANDROID_VR_SHELL_GLTF_PARSER_H_ |