#include "src/gpu/ganesh/GrStencilSettings.h"
#include "include/private/base/SkDebug.h"
#include "src/gpu/KeyBuilder.h"
#include <algorithm>
#include <cstddef>
#include <cstring>
constexpr const GrUserStencilSettings gUnused(
GrUserStencilSettings::StaticInit<
0x0000,
GrUserStencilTest::kAlwaysIfInClip,
0xffff,
GrUserStencilOp::kKeep,
GrUserStencilOp::kKeep,
0x0000>()
);
static_assert …;
const GrUserStencilSettings& GrUserStencilSettings::kUnused = …;
void GrStencilSettings::reset(const GrUserStencilSettings& user, bool hasStencilClip,
int numStencilBits) { … }
void GrStencilSettings::reset(const GrStencilSettings& that) { … }
bool GrStencilSettings::operator==(const GrStencilSettings& that) const { … }
static constexpr GrStencilTest gUserStencilTestToRaw[kGrUserStencilTestCount] = …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static constexpr GrStencilOp gUserStencilOpToRaw[kGrUserStencilOpCount] = …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
void GrStencilSettings::Face::reset(const GrUserStencilSettings::Face& user, bool hasStencilClip,
int numStencilBits) { … }
void GrStencilSettings::Face::setDisabled() { … }
static constexpr GrUserStencilSettings gZeroStencilClipBit(
GrUserStencilSettings::StaticInit<
0x0000,
GrUserStencilTest::kAlways,
0xffff,
GrUserStencilOp::kZeroClipBit,
GrUserStencilOp::kZeroClipBit,
0x0000>()
);
static constexpr GrUserStencilSettings gSetStencilClipBit(
GrUserStencilSettings::StaticInit<
0x0000,
GrUserStencilTest::kAlways,
0xffff,
GrUserStencilOp::kSetClipBit,
GrUserStencilOp::kSetClipBit,
0x0000>()
);
const GrUserStencilSettings* GrStencilSettings::SetClipBitSettings(bool setToInside) { … }
void GrStencilSettings::genKey(skgpu::KeyBuilder* b, bool includeRefs) const { … }