blob: cef5b481a295e9bbad1605bdb11c89000eb75c63 [file] [log] [blame]
// Copyright 2016 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.
#ifndef VRDisplayCapabilities_h
#define VRDisplayCapabilities_h
#include "platform/bindings/ScriptWrappable.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/Forward.h"
namespace blink {
class VRDisplayCapabilities final : public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
VRDisplayCapabilities() = default;
bool hasPosition() const { return has_position_; }
bool hasExternalDisplay() const { return has_external_display_; }
bool canPresent() const { return can_present_; }
unsigned maxLayers() const { return max_layers_; }
void SetHasPosition(bool value) { has_position_ = value; }
void SetHasExternalDisplay(bool value) { has_external_display_ = value; }
void SetCanPresent(bool value) { can_present_ = value; }
void SetMaxLayers(unsigned value) { max_layers_ = value; }
private:
bool has_position_ = false;
bool has_external_display_ = false;
bool can_present_ = false;
unsigned max_layers_ = 0;
};
} // namespace blink
#endif // VRDisplayCapabilities_h