31 const char* name()
const override {
return "Disable Color"; }
32 bool onIsEqual(
const GrXferProcessor& xpBase)
const override {
return true; }
37 std::unique_ptr<ProgramImpl> makeProgramImpl()
const override;
42std::unique_ptr<GrXferProcessor::ProgramImpl> DisableColorXP::makeProgramImpl()
const {
45 void emitOutputsForBlendState(
const EmitArgs&
args)
override {
46 if (
args.fShaderCaps->fMustWriteToFragColor) {
59 const char*)
const override {
64 return std::make_unique<Impl>();
68 return sk_make_sp<DisableColorXP>();
73#if defined(GR_TEST_UTILS)
74const GrXPFactory* GrDisableColorXPFactory::TestGet(GrProcessorTestData*) {
#define GR_DEFINE_XP_FACTORY_TEST(...)
static sk_sp< const GrXferProcessor > MakeXferProcessor()
static const GrDisableColorXPFactory * Get()
void codeAppendf(const char format[],...) SK_PRINTF_LIKE(2
@ kDisableColorXP_ClassID
GrXferProcessor(ClassID classID)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args