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

Unified Diff: chrome/browser/android/vr_shell/gltf_parser.h

Issue 2852533004: Implementing Binary glTF reader for the VR controller model (Closed)
Patch Set: Avoiding auto Created 3 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 | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/gltf_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/gltf_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698