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

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

Issue 2624633002: Remove Sync GetPose VRService call, implement VRVSyncProvider (Closed)
Patch Set: Created 3 years, 11 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/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index a95676ea6ce6316c07baf9a73a2cf074ca4cf434..dd530fc2e6fdf1f00a714735d3d8121c6a7fff1d 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -16,6 +16,7 @@
#include "base/single_thread_task_runner.h"
#include "content/public/browser/web_contents_observer.h"
#include "device/vr/android/gvr/gvr_delegate.h"
+#include "device/vr/vr_service.mojom.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
@@ -81,6 +82,9 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
void SetWebVrMode(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
bool enabled);
+ void UpdateVSyncInterval(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jlong timebase_nanos, jdouble interval_seconds);
void ContentWebContentsDestroyed();
// Called when our WebContents have been hidden. Usually a sign that something
@@ -103,7 +107,6 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
void UpdateWebVRTextureBounds(const gvr::Rectf& left_bounds,
const gvr::Rectf& right_bounds) override;
gvr::GvrApi* gvr_api() override;
- void SetGvrPoseForWebVr(const gvr::Mat4f& pose, uint32_t pose_num) override;
void SetWebVRRenderSurfaceSize(int width, int height) override;
gvr::Sizei GetWebVRCompositorSurfaceSize() override;
@@ -133,6 +136,10 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
void ForceExitVr();
+ void OnVRVsyncProviderReady();
+ void OnVRVSyncProviderClientConnected(
+ device::mojom::VRVSyncProviderClientPtr client);
+
private:
~VrShell() override;
void SetShowingOverscrollGlow(bool showing_glow);

Powered by Google App Engine
This is Rietveld 408576698