#include "services/on_device_model/ml/gpu_blocklist.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "gpu/config/webgpu_blocklist_impl.h"
#include "third_party/dawn/include/dawn/webgpu_cpp.h"
namespace ml {
namespace {
const base::FeatureParam<std::string> kGpuBlockList{ … };
enum class GpuBlockedReason { … };
void LogGpuBlocked(GpuBlockedReason reason) { … }
DISABLE_CFI_DLSYM
GpuBlockedReason IsGpuBlockedInternal(const ChromeMLAPI& api) { … }
}
bool GpuBlocklist::IsGpuBlocked(const ChromeMLAPI& api) const { … }
}