Chromium Code Reviews| Index: chrome/browser/android/vr_shell/gltf_asset.h | 
| diff --git a/chrome/browser/android/vr_shell/gltf_asset.h b/chrome/browser/android/vr_shell/gltf_asset.h | 
| index 4c2b753a8f8bf0c813712ad6ab7f390fbf1e53c4..d48d47ef14c65723eae526b495c8614af79c4639 100644 | 
| --- a/chrome/browser/android/vr_shell/gltf_asset.h | 
| +++ b/chrome/browser/android/vr_shell/gltf_asset.h | 
| @@ -29,6 +29,8 @@ enum Type { | 
| Type GetType(const std::string& type); | 
| +GLint GetTypeComponents(Type type); | 
| + | 
| // A Buffer is data stored as binary blob in little-endian format. | 
| using Buffer = std::string; | 
| @@ -108,6 +110,8 @@ class Asset { | 
| void SetMainScene(const Scene* scene) { scene_ = scene; } | 
| + void FreeBuffers(); | 
| 
 
mthiesse
2017/03/28 20:26:23
I don't really like that we're clearing the buffer
 
acondor_
2017/03/29 20:13:26
Done.
 
 | 
| + | 
| private: | 
| std::vector<std::unique_ptr<Buffer>> buffers_; | 
| std::vector<std::unique_ptr<BufferView>> buffer_views_; |