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

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

Issue 2861343002: Enable gpu rasterization in the vr shell
Patch Set: additional trace instrumentation 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/ui_scene.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_scene.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index 07e2eff2dfe9c43e36aa915777a32bffb26232e6..39cc9bd42c3cfd5630043cd7310b1cfe55de66ef 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -63,7 +63,7 @@ void UiScene::AddUiElement(std::unique_ptr<UiElement> element) {
CHECK_EQ(element->y_anchoring(), YAnchoring::YNONE);
}
if (gl_initialized_)
- element->Initialize();
+ element->Initialize(surface_provider_);
ui_elements_.push_back(std::move(element));
}
@@ -219,10 +219,11 @@ void UiScene::ApplyRecursiveTransforms(UiElement* element) {
}
// TODO(mthiesse): Move this to UiSceneManager.
-void UiScene::OnGLInitialized() {
+void UiScene::OnGLInitialized(VrSurfaceProvider* provider) {
gl_initialized_ = true;
+ surface_provider_ = provider;
for (auto& element : ui_elements_) {
- element->Initialize();
+ element->Initialize(provider);
}
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698