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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: Address comments Created 4 years, 1 month 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.h
diff --git a/device/vr/android/gvr/gvr_device_provider.h b/device/vr/android/gvr/gvr_device_provider.h
index 23f8cb0832ebf83444db07b1a4d77cf6beffd24d..9b2a982478d6a5111a2e552917af9b129df8da12 100644
--- a/device/vr/android/gvr/gvr_device_provider.h
+++ b/device/vr/android/gvr/gvr_device_provider.h
@@ -22,22 +22,31 @@ class GvrDevice;
class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider {
public:
GvrDeviceProvider();
- ~GvrDeviceProvider() override;
void GetDevices(std::vector<VRDevice*>* devices) override;
void Initialize() override;
- // Called from GvrDevice
+ // Called from GvrDevice.
bool RequestPresent();
void ExitPresent();
- // Called from GvrDelegate
+ // Called from GvrDelegate. May be called from any thread.
void OnGvrDelegateReady(GvrDelegate* delegate);
void OnGvrDelegateRemoved();
+ // May be called from any thread. This function is likely to be called from
+ // an arbitrary GL thread handling GVR controller updates.
+ void OnDisplayBlur();
+
+ // May be called from any thread. This function is likely to be called from
+ // an arbitrary GL thread handling GVR controller updates.
+ void OnDisplayFocus();
+
void SetClient(VRClientDispatcher* client) override;
private:
+ ~GvrDeviceProvider() override;
+
void GvrDelegateReady(GvrDelegate* delegate);
void GvrDelegateRemoved();

Powered by Google App Engine
This is Rietveld 408576698