blob: 2b2b0b3a6a3721bb5137523e6489ddf33423ac61 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/xr/xr_light_estimation_state.h"
#include "third_party/blink/renderer/modules/xr/xr_light_estimation_state_init.h"
namespace blink {
XRLightEstimationState::XRLightEstimationState(
XRLightEstimationStateInit* light_estimation_state_init) {
if (light_estimation_state_init) {
if (light_estimation_state_init->hasEnabled()) {
enabled_ = light_estimation_state_init->enabled();
}
}
}
} // namespace blink