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

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

Issue 2680723003: Remove ENABLE_VR_SHELL compile-time define. (Closed)
Patch Set: Fix lint warnings generated by vr_shell's new pickier checks. Created 3 years, 10 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/non_presenting_gvr_delegate.cc
diff --git a/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc b/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc
index 7f3a2a2df1e97cea9818c40b6ea4cb6fd6476ea1..2e69283b77756ce329c1810f4350599111a2e4c3 100644
--- a/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc
+++ b/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h"
+#include <utility>
+
#include "base/callback_helpers.h"
#include "chrome/browser/android/vr_shell/vr_shell.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr.h"
@@ -11,7 +13,7 @@
namespace vr_shell {
namespace {
-static constexpr long kPredictionTimeWithoutVsyncNanos = 50000000;
+static constexpr int64_t kPredictionTimeWithoutVsyncNanos = 50000000;
} // namespace
NonPresentingGvrDelegate::NonPresentingGvrDelegate(gvr_context* context)
@@ -117,7 +119,7 @@ void NonPresentingGvrDelegate::GetVSync(const GetVSyncCallback& callback) {
SendVSync(pending_time_, callback);
}
-void NonPresentingGvrDelegate::UpdateVSyncInterval(long timebase_nanos,
+void NonPresentingGvrDelegate::UpdateVSyncInterval(int64_t timebase_nanos,
double interval_seconds) {
vsync_timebase_ = base::TimeTicks();
vsync_timebase_ += base::TimeDelta::FromMicroseconds(timebase_nanos / 1000);
« no previous file with comments | « chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698