// gpu/ipc/common/context_result.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

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

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef GPU_IPC_COMMON_CONTEXT_RESULT_MOJOM_DATA_VIEW_H_
#define GPU_IPC_COMMON_CONTEXT_RESULT_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "gpu/ipc/common/context_result.mojom-shared-internal.h"


namespace gpu::mojom {


}  // gpu::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace gpu::mojom {


enum class ContextResult : int32_t {
  
  Success = 0,
  
  TransientFailure = 1,
  
  FatalFailure = 2,
  
  SurfaceFailure = 3,
  kMinValue = 0,
  kMaxValue = 3,
};

COMPONENT_EXPORT(MOJOM_SHARED_GPU_EXPORT) std::ostream& operator<<(std::ostream& os, ContextResult value);
inline bool IsKnownEnumValue(ContextResult value) {
  return internal::ContextResult_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(ContextResult) {
  return true;
}


}  // gpu::mojom

#endif  // GPU_IPC_COMMON_CONTEXT_RESULT_MOJOM_DATA_VIEW_H_