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

Unified Diff: device/vr/android/gvr/gvr_device_provider.cc

Issue 2584343002: WIP: working copy-no-compositor path
Patch Set: StatTracker destructor, delete old magic numbers, mojo export 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: device/vr/android/gvr/gvr_device_provider.cc
diff --git a/device/vr/android/gvr/gvr_device_provider.cc b/device/vr/android/gvr/gvr_device_provider.cc
index 26d1c5969f7d595d4d438428d32f474a6bbc3923..349331fbe2252150bfa3c8f2639dbd98435df8f9 100644
--- a/device/vr/android/gvr/gvr_device_provider.cc
+++ b/device/vr/android/gvr/gvr_device_provider.cc
@@ -103,6 +103,15 @@ void GvrDeviceProvider::OnNonPresentingDelegateRemoved() {
vr_device_->SetDelegate(nullptr);
}
+void GvrDeviceProvider::OnFrameSubmitted(int32_t surface_handle, uint32_t frame_index, double elapsed) {
+ if (!vr_device_) {
+ VLOG(1) << __FUNCTION__ << ": No vr_device_";
+ return;
+ }
+
+ vr_device_->OnFrameSubmitted(surface_handle, frame_index, elapsed);
+}
+
void GvrDeviceProvider::OnDisplayBlur() {
if (!vr_device_)
return;

Powered by Google App Engine
This is Rietveld 408576698