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

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

Issue 2809143004: VR: Add a native UI element scene manager (Closed)
Patch Set: Rebase. Created 3 years, 8 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.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index eefc59ec2ce541b63da1a97d474a32e90fd0c82f..70f527f1a4632ed0fb02bb8c154d1b2bf1621fe2 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -23,10 +23,6 @@
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
#include "ui/gfx/native_widget_types.h"
-namespace base {
-class ListValue;
-}
-
namespace blink {
class WebInputEvent;
}
@@ -75,7 +71,8 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
gvr_context* gvr_api,
bool initially_web_vr,
- bool reprojected_rendering);
+ bool reprojected_rendering,
+ UiScene* scene);
~VrShellGl() override;
void Initialize();
@@ -101,8 +98,6 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
const gfx::RectF& right_bounds,
const gfx::Size& source_size);
- void UpdateScene(std::unique_ptr<base::ListValue> commands);
-
void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds);
void OnRequest(device::mojom::VRVSyncProviderRequest request);
@@ -164,7 +159,7 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
// samplerExternalOES texture data for WebVR content image.
int webvr_texture_id_ = 0;
- std::unique_ptr<UiScene> scene_;
+ UiScene* scene_;
scoped_refptr<gl::GLSurface> surface_;
scoped_refptr<gl::GLContext> context_;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698