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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: Add comments to VRDisplay 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 02f77583ffe40b6b46863e8073ab45194a29c8a0..a0f489e25077b7508178246c80503573953c79ed 100644
--- a/device/vr/android/gvr/gvr_device_provider.h
+++ b/device/vr/android/gvr/gvr_device_provider.h
@@ -22,20 +22,29 @@ class VRServiceImpl;
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();
+
private:
+ ~GvrDeviceProvider() override;
+
void GvrDelegateReady(GvrDelegate* delegate);
void GvrDelegateRemoved();

Powered by Google App Engine
This is Rietveld 408576698