blob: b3f23b8a73af21c35e85b0486f84692221c1645a [file] [log] [blame]
// Copyright 2018 The Fuchsia 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 SRC_UI_LIB_ESCHER_PAPER_PAPER_DRAWABLE_FLAGS_H_
#define SRC_UI_LIB_ESCHER_PAPER_PAPER_DRAWABLE_FLAGS_H_
#include <cstdint>
#include "src/ui/lib/escher/util/enum_flags.h"
namespace escher {
// These flags modify how |PaperDrawables| are rendered by |PaperRenderer|.
// They become part of the |PaperDrawCalls| generated from the |PaperDrawable|
// by |PaperDrawCallFactory|.
enum class PaperDrawableFlagBits : uint8_t {
kDebug = 1U << 0,
kDisableShadowCasting = 1U << 1,
kAllFlags = 0x3u,
};
ESCHER_DECLARE_ENUM_FLAGS(PaperDrawableFlags, PaperDrawableFlagBits);
} // namespace escher
#endif // SRC_UI_LIB_ESCHER_PAPER_PAPER_DRAWABLE_FLAGS_H_