chromium/third_party/blink/renderer/modules/xr/xr_render_state.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#define _USE_MATH_DEFINES

#include "third_party/blink/renderer/modules/xr/xr_render_state.h"

#include <algorithm>
#include <cmath>

#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_render_state_init.h"
#include "third_party/blink/renderer/modules/xr/xr_webgl_layer.h"

namespace blink {

namespace {
// The WebXR spec specifies that the min and max are up the UA, but have to be
// within 0 and Pi.  Using those exact numbers can lead to floating point math
// errors, so set them slightly inside those numbers.
constexpr double kMinFieldOfView =;
constexpr double kMaxFieldOfView =;
constexpr double kDefaultFieldOfView =;
}  // namespace

XRRenderState::XRRenderState(bool immersive) :{}

void XRRenderState::Update(const XRRenderStateInit* init) {}

HTMLCanvasElement* XRRenderState::output_canvas() const {}

std::optional<double> XRRenderState::inlineVerticalFieldOfView() const {}

void XRRenderState::Trace(Visitor* visitor) const {}

}  // namespace blink