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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_renderer.cc

Issue 2891243002: VR: Loading DD controller model after GL is initialized (Closed)
Patch Set: doing texture patching on background task Created 3 years, 7 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_renderer.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_renderer.cc b/chrome/browser/android/vr_shell/vr_shell_renderer.cc
index e87c903a4f59ca3c1b14c056a34c0dc2790cdd10..098e8608e5fd3364988a4c8137f444cf82f700dc 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.cc
@@ -9,6 +9,7 @@
#include <string>
#include "base/memory/ptr_util.h"
+#include "base/trace_event/trace_event.h"
#include "chrome/browser/android/vr_shell/vr_gl_util.h"
namespace {
@@ -596,6 +597,7 @@ ControllerRenderer::ControllerRenderer()
ControllerRenderer::~ControllerRenderer() = default;
void ControllerRenderer::SetUp(std::unique_ptr<VrControllerModel> model) {
+ TRACE_EVENT0("gpu", "ControllerRenderer::SetUp");
glGenBuffersARB(1, &indices_buffer_);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indices_buffer_);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, model->IndicesBufferSize(),
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698