chromium/third_party/skia/src/gpu/ganesh/GrUtil.h

/*
 * Copyright 2019 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef GrUtil_DEFINED
#define GrUtil_DEFINED

#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/gpu/ganesh/GrTypes.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/core/SkSLTypeShared.h"

#include <cstdint>

class GrStyle;
class SkMatrix;

enum GrIntelGpuFamily {};

GrIntelGpuFamily GrGetIntelGpuFamily(uint32_t deviceID);

// Helper for determining if we can treat a thin stroke as a hairline w/ coverage.
// If we can, we draw lots faster (raster device does this same test).
bool GrIsStrokeHairlineOrEquivalent(const GrStyle&, const SkMatrix&, SkScalar* outCoverage);

static inline SkSLType SkSLCombinedSamplerTypeForTextureType(GrTextureType type) {}

static constexpr const char* GrBackendApiToStr(GrBackendApi api) {}

static constexpr const char* GrColorTypeToStr(GrColorType ct) {}

static constexpr const char* GrSurfaceOriginToStr(GrSurfaceOrigin origin) {}

#endif