chromium/ui/display/util/gpu_info_util.h

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

#ifndef UI_DISPLAY_UTIL_GPU_INFO_UTIL_H_
#define UI_DISPLAY_UTIL_GPU_INFO_UTIL_H_

#include <string_view>

#include "base/values.h"

namespace display {

// Helpers for internal pages like chrome://gpu.  Create a dictionary with two
// values named description (string) and value (depends on the helper).
base::Value BuildGpuInfoEntry(std::string_view description,
                              std::string_view value);
base::Value::Dict BuildGpuInfoEntry(std::string_view description,
                                    base::Value value);

}  // namespace display

#endif  // UI_DISPLAY_UTIL_GPU_INFO_UTIL_H_