summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/xr/xr_world_information.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/xr/xr_world_information.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/xr/xr_world_information.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/xr/xr_world_information.h b/chromium/third_party/blink/renderer/modules/xr/xr_world_information.h
index d39ee9a0699..05ec44afcb6 100644
--- a/chromium/third_party/blink/renderer/modules/xr/xr_world_information.h
+++ b/chromium/third_party/blink/renderer/modules/xr/xr_world_information.h
@@ -11,6 +11,7 @@
namespace blink {
+class XRLightEstimation;
class XRSession;
class XRWorldInformation : public ScriptWrappable {
@@ -23,13 +24,19 @@ class XRWorldInformation : public ScriptWrappable {
// disabled.
XRPlaneSet* detectedPlanes() const;
- void Trace(blink::Visitor* visitor) override;
+ XRLightEstimation* lightEstimation() const;
+
+ void Trace(Visitor* visitor) override;
// Applies changes to the stored plane information based on the contents of
// the received frame data. This will update the contents of
// plane_ids_to_planes_.
void ProcessPlaneInformation(
- const device::mojom::blink::XRPlaneDetectionDataPtr& detected_planes_data,
+ const device::mojom::blink::XRPlaneDetectionData* detected_planes_data,
+ double timestamp);
+
+ void ProcessLightEstimationData(
+ const device::mojom::blink::XRLightEstimationData* data,
double timestamp);
private:
@@ -39,6 +46,8 @@ class XRWorldInformation : public ScriptWrappable {
bool is_detected_planes_null_ = true;
HeapHashMap<uint64_t, Member<XRPlane>> plane_ids_to_planes_;
+ Member<XRLightEstimation> light_estimation_;
+
Member<XRSession> session_;
};