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

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

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
Index: chrome/browser/android/vr_shell/ui_scene.h
diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h
index 62fa01ad2dee383dff1124891d8d9ab76d3e4910..9976c8a97322e1af09a4ee57b8040ddbca306ab5 100644
--- a/chrome/browser/android/vr_shell/ui_scene.h
+++ b/chrome/browser/android/vr_shell/ui_scene.h
@@ -21,6 +21,7 @@ namespace vr_shell {
class Animation;
class UiElement;
+class VrSurfaceProvider;
class UiScene {
public:
@@ -71,7 +72,7 @@ class UiScene {
bool GetWebVrRenderingEnabled() const;
void SetWebVrRenderingEnabled(bool enabled);
- void OnGLInitialized();
+ void OnGLInitialized(VrSurfaceProvider*);
private:
void ApplyRecursiveTransforms(UiElement* element);
@@ -82,6 +83,7 @@ class UiScene {
float background_distance_ = 10.0f;
bool webvr_rendering_enabled_ = true;
bool gl_initialized_ = false;
+ VrSurfaceProvider* surface_provider_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(UiScene);
};
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/ui_element.cc ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698