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

Issue 2774653002: Support for parsing external file references in a glTF resource. (Closed)

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

Description

Support for parsing external file references in glTF resource. The URI parsing was delegated to GURL and net::DataURL::Parse. BUG=705006 Review-Url: https://codereview.chromium.org/2774653002 Cr-Commit-Position: refs/heads/master@{#459918} Committed: https://chromium.googlesource.com/chromium/src/+/be44edfc498758ae90777f88f80dff56b7fb586c

Patch Set 1 #

Patch Set 2 : Test as fixture #

Total comments: 6

Patch Set 3 : Safer code for relative paths. #

Total comments: 4

Patch Set 4 : Modifying comments. #

Total comments: 4

Patch Set 5 : Scoped holders and tests for parsing failures. #

Total comments: 2

Patch Set 6 : Scoping Clean call. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -25 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/gltf_parser.h View 1 2 3 5 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/gltf_parser.cc View 1 2 3 4 5 4 chunks +72 lines, -19 lines 0 comments Download
M chrome/browser/android/vr_shell/gltf_parser_unittest.cc View 1 2 3 4 3 chunks +66 lines, -5 lines 0 comments Download
A chrome/browser/android/vr_shell/test/data/sample.bin View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/test/data/sample_external.gltf View 1 chunk +11 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 26 (9 generated)
acondor_
I got the external resource files on glTF working. Please have a look.
3 years, 9 months ago (2017-03-23 14:42:29 UTC) #2
mthiesse
https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode26 chrome/browser/android/vr_shell/gltf_parser.cc:26: Clear(); You probably want to clear on the success ...
3 years, 9 months ago (2017-03-23 15:00:11 UTC) #3
acondor_
https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode33 chrome/browser/android/vr_shell/gltf_parser.cc:33: // Use this method if the glTF file references ...
3 years, 9 months ago (2017-03-23 15:29:22 UTC) #4
acondor_
Hopefully these comments are more clear. https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/20001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode26 chrome/browser/android/vr_shell/gltf_parser.cc:26: Clear(); On 2017/03/23 ...
3 years, 9 months ago (2017-03-23 16:28:12 UTC) #5
mthiesse
lgtm https://codereview.chromium.org/2774653002/diff/40001/chrome/browser/android/vr_shell/gltf_parser.h File chrome/browser/android/vr_shell/gltf_parser.h (right): https://codereview.chromium.org/2774653002/diff/40001/chrome/browser/android/vr_shell/gltf_parser.h#newcode33 chrome/browser/android/vr_shell/gltf_parser.h:33: // If so, run it off of the ...
3 years, 9 months ago (2017-03-24 14:14:49 UTC) #6
acondor_
https://codereview.chromium.org/2774653002/diff/40001/chrome/browser/android/vr_shell/gltf_parser.h File chrome/browser/android/vr_shell/gltf_parser.h (right): https://codereview.chromium.org/2774653002/diff/40001/chrome/browser/android/vr_shell/gltf_parser.h#newcode33 chrome/browser/android/vr_shell/gltf_parser.h:33: // If so, run it off of the UI ...
3 years, 9 months ago (2017-03-24 14:52:00 UTC) #7
cjgrant
https://codereview.chromium.org/2774653002/diff/60001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/60001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode28 chrome/browser/android/vr_shell/gltf_parser.cc:28: Clear(); I don't think its warranted here, but if ...
3 years, 9 months ago (2017-03-24 15:11:55 UTC) #9
acondor_
I scoped the holders and added tests for parsing failures. https://codereview.chromium.org/2774653002/diff/60001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/60001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode28 ...
3 years, 9 months ago (2017-03-24 18:00:56 UTC) #10
ddorwin
You might clarify in the description that this is adding support for loading glTF files ...
3 years, 9 months ago (2017-03-24 18:06:20 UTC) #11
mthiesse
https://codereview.chromium.org/2774653002/diff/80001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/80001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode30 chrome/browser/android/vr_shell/gltf_parser.cc:30: helper_ = &helper; Okay, this is worse than what ...
3 years, 9 months ago (2017-03-24 18:11:10 UTC) #12
acondor_
After a difficult rebasing :( https://codereview.chromium.org/2774653002/diff/80001/chrome/browser/android/vr_shell/gltf_parser.cc File chrome/browser/android/vr_shell/gltf_parser.cc (right): https://codereview.chromium.org/2774653002/diff/80001/chrome/browser/android/vr_shell/gltf_parser.cc#newcode30 chrome/browser/android/vr_shell/gltf_parser.cc:30: helper_ = &helper; On ...
3 years, 9 months ago (2017-03-24 20:36:13 UTC) #14
mthiesse
lgtm
3 years, 9 months ago (2017-03-25 15:02:28 UTC) #16
cjgrant
lgtm
3 years, 9 months ago (2017-03-27 14:16:33 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/2774653002/100001
3 years, 8 months ago (2017-03-27 16:42:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/180733)
3 years, 8 months ago (2017-03-27 21:14:57 UTC) #21
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/2774653002/100001
3 years, 8 months ago (2017-03-27 21:21:48 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-03-27 22:54:32 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/be44edfc498758ae90777f88f80d...

Powered by Google App Engine
This is Rietveld 408576698