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

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

Issue 2775283004: Rendering Daydream controller in a fixed position. (Closed)
Patch Set: Using textures for corresponding button states. Created 3 years, 9 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
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_;

Powered by Google App Engine
This is Rietveld 408576698