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

Issue 2757213003: Implementing glTF 1.0 parser (Closed)

Created:
3 years, 9 months ago by acondor_
Modified:
3 years, 9 months ago
Reviewers:
mthiesse, bajones, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementing glTF 1.0 parser - Documentation at https://github.com/KhronosGroup/glTF/tree/2.0/specification/1.0 - Elements which we will not be using are excluded, such as materials, textures, shaders, skins. We might want to use them later when glTF 2.0 is released. For now, we plan to handle this natively. - Unittests are included. - Small refactoring of the rendering classes inheritance to account for non-quad objects, which will be used later for rendering the controller. - Minor fixes on code I encountered. BUG=705006 Review-Url: https://codereview.chromium.org/2757213003 Cr-Commit-Position: refs/heads/master@{#459547} Committed: https://chromium.googlesource.com/chromium/src/+/a76f0b59ca704c56c693b2390a8033f834b08a3f

Patch Set 1 #

Total comments: 31

Patch Set 2 : Moving glTF structs to their own file #

Total comments: 14

Patch Set 3 : Removing CHECKs when parsing fails. #

Total comments: 7

Patch Set 4 : Moving glTF test data to a file. #

Total comments: 6

Patch Set 5 : Addressing nit requests. #

Patch Set 6 : Resolving merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+839 lines, -32 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/gltf_asset.h View 1 2 1 chunk +125 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/gltf_asset.cc View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/gltf_parser.h View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/gltf_parser.cc View 1 2 3 1 chunk +274 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/gltf_parser_unittest.cc View 1 2 3 4 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/test/data/sample_inline.gltf View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/test/paths.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/test/paths.cc View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_math.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_renderer.h View 1 2 6 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_renderer.cc View 1 2 8 chunks +19 lines, -21 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (12 generated)
acondor_
Please perform an initial review.
3 years, 9 months ago (2017-03-20 21:55:46 UTC) #2
mthiesse
Heading out, will continue review tomorrow, but left some initial nit-picky comments :P https://codereview.chromium.org/2757213003/diff/1/chrome/browser/android/vr_shell/gltf_parser.h File ...
3 years, 9 months ago (2017-03-20 22:32:45 UTC) #4
acondor_
The first suggestions addressed. Also, I tried to stick more to the format, specially regarding ...
3 years, 9 months ago (2017-03-21 15:26:22 UTC) #6
bajones
https://codereview.chromium.org/2757213003/diff/20001/chrome/browser/android/vr_shell/gltf_asset.h File chrome/browser/android/vr_shell/gltf_asset.h (right): https://codereview.chromium.org/2757213003/diff/20001/chrome/browser/android/vr_shell/gltf_asset.h#newcode93 chrome/browser/android/vr_shell/gltf_asset.h:93: std::size_t AddBuffer(std::unique_ptr<Buffer> buffer) { I know this are all ...
3 years, 9 months ago (2017-03-21 15:44:24 UTC) #7
mthiesse
https://codereview.chromium.org/2757213003/diff/1/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2757213003/diff/1/chrome/browser/android/vr_shell/gltf_parser.cc#newcode92 chrome/browser/android/vr_shell/gltf_parser.cc:92: // Only inline data is supported nit: add period. ...
3 years, 9 months ago (2017-03-21 16:06:55 UTC) #8
cjgrant
https://codereview.chromium.org/2757213003/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2757213003/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode24 chrome/browser/android/vr_shell/gltf_parser.cc:24: CHECK(gltf_version == "1.0"); General comment for here and many ...
3 years, 9 months ago (2017-03-21 16:16:47 UTC) #10
acondor_
Addressing suggestions. - Removing CHECKs in favor of returning nullptr when parsing fails. - Moved ...
3 years, 9 months ago (2017-03-21 19:31:30 UTC) #11
mthiesse
https://codereview.chromium.org/2757213003/diff/40001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2757213003/diff/40001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode30 chrome/browser/android/vr_shell/gltf_parser.cc:30: asset_.reset(); Rather than making asset_ a member variable and ...
3 years, 9 months ago (2017-03-21 20:24:38 UTC) #12
cjgrant
https://codereview.chromium.org/2757213003/diff/40001/chrome/browser/android/vr_shell/gltf_parser_unittest.cc File chrome/browser/android/vr_shell/gltf_parser_unittest.cc (right): https://codereview.chromium.org/2757213003/diff/40001/chrome/browser/android/vr_shell/gltf_parser_unittest.cc#newcode16 chrome/browser/android/vr_shell/gltf_parser_unittest.cc:16: base::DictionaryValue asset; On 2017/03/21 20:24:38, mthiesse wrote: > I ...
3 years, 9 months ago (2017-03-21 20:38:03 UTC) #13
acondor_
Addressed the small suggestions and moved the test data for the glTF parser to a ...
3 years, 9 months ago (2017-03-22 16:25:29 UTC) #14
mthiesse
lgtm Wait until at least tomorrow to land this, to see if the gpu folks ...
3 years, 9 months ago (2017-03-22 18:53:44 UTC) #15
bajones
LGTM with mthiesse@'s nits addressed. And I agree that we should wait to see if ...
3 years, 9 months ago (2017-03-22 19:04:13 UTC) #16
acondor_
On hold then. https://codereview.chromium.org/2757213003/diff/60001/chrome/browser/android/vr_shell/gltf_parser.h File chrome/browser/android/vr_shell/gltf_parser.h (right): https://codereview.chromium.org/2757213003/diff/60001/chrome/browser/android/vr_shell/gltf_parser.h#newcode24 chrome/browser/android/vr_shell/gltf_parser.h:24: // but only on thoroughly tested ...
3 years, 9 months ago (2017-03-22 19:34:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757213003/80001
3 years, 9 months ago (2017-03-24 15:12:58 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/android/vr_shell/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-24 18:07:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757213003/100001
3 years, 9 months ago (2017-03-24 19:07:42 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 20:58:15 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a76f0b59ca704c56c693b2390a80...

Powered by Google App Engine
This is Rietveld 408576698