Chromium Code Reviews| 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..351ec352a00a619eceaa253cc3a20d073f16fb1f 100644 |
| --- a/chrome/browser/android/vr_shell/gltf_parser.h |
| +++ b/chrome/browser/android/vr_shell/gltf_parser.h |
| @@ -67,6 +67,25 @@ 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( |
| + const base::StringPiece& glb_content, |
| + std::vector<std::unique_ptr<gltf::Buffer>>* buffers, |
| + const base::FilePath& path = base::FilePath()); |
| + |
| + private: |
| + enum { |
| + kVersionStart = 4, |
|
mthiesse
2017/04/28 15:51:34
Remove this
acondor_
2017/04/28 16:07:01
Done.
|
| + kLengthStart = 8, |
| + kContentLengthStart = 12, |
| + kContentFormatStart = 16, |
| + kContentStart = 20 |
| + }; |
| +}; |
| + |
| } // namespace vr_shell |
| #endif // CHROME_BROWSER_ANDROID_VR_SHELL_GLTF_PARSER_H_ |