| 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();
|
|
|
|
|