2021-04-22 19:05:20 +00:00
|
|
|
|
2021-04-13 21:13:03 +00:00
|
|
|
|
|
|
|
/**************************************************************************************************
|
2021-04-22 19:05:20 +00:00
|
|
|
*** This file was autogenerated from GrDSLFPTest_Ternary.fp; do not modify.
|
2021-04-13 21:13:03 +00:00
|
|
|
**************************************************************************************************/
|
2021-04-22 19:05:20 +00:00
|
|
|
#ifndef GrDSLFPTest_Ternary_DEFINED
|
|
|
|
#define GrDSLFPTest_Ternary_DEFINED
|
2021-04-13 21:13:03 +00:00
|
|
|
|
|
|
|
#include "include/core/SkM44.h"
|
|
|
|
#include "include/core/SkTypes.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "src/gpu/GrFragmentProcessor.h"
|
|
|
|
|
2021-04-22 19:05:20 +00:00
|
|
|
class GrDSLFPTest_Ternary : public GrFragmentProcessor {
|
2021-04-13 21:13:03 +00:00
|
|
|
public:
|
2021-04-26 13:35:38 +00:00
|
|
|
static std::unique_ptr<GrFragmentProcessor> Make(bool primaryColors, SkPMColor4f colorGreen, SkPMColor4f colorRed, SkPMColor4f colorOrange, SkPMColor4f colorPurple) {
|
|
|
|
return std::unique_ptr<GrFragmentProcessor>(new GrDSLFPTest_Ternary(primaryColors, colorGreen, colorRed, colorOrange, colorPurple));
|
2021-04-13 21:13:03 +00:00
|
|
|
}
|
2021-04-22 19:05:20 +00:00
|
|
|
GrDSLFPTest_Ternary(const GrDSLFPTest_Ternary& src);
|
2021-04-13 21:13:03 +00:00
|
|
|
std::unique_ptr<GrFragmentProcessor> clone() const override;
|
2021-04-22 19:05:20 +00:00
|
|
|
const char* name() const override { return "DSLFPTest_Ternary"; }
|
2021-04-26 13:35:38 +00:00
|
|
|
bool primaryColors;
|
2021-04-22 19:08:33 +00:00
|
|
|
SkPMColor4f colorGreen;
|
|
|
|
SkPMColor4f colorRed;
|
2021-04-26 13:35:38 +00:00
|
|
|
SkPMColor4f colorOrange;
|
|
|
|
SkPMColor4f colorPurple;
|
2021-04-13 21:13:03 +00:00
|
|
|
private:
|
2021-04-26 13:35:38 +00:00
|
|
|
GrDSLFPTest_Ternary(bool primaryColors, SkPMColor4f colorGreen, SkPMColor4f colorRed, SkPMColor4f colorOrange, SkPMColor4f colorPurple)
|
2021-04-22 19:08:33 +00:00
|
|
|
: INHERITED(kGrDSLFPTest_Ternary_ClassID, kNone_OptimizationFlags)
|
2021-04-26 13:35:38 +00:00
|
|
|
, primaryColors(primaryColors)
|
2021-04-22 19:08:33 +00:00
|
|
|
, colorGreen(colorGreen)
|
2021-04-26 13:35:38 +00:00
|
|
|
, colorRed(colorRed)
|
|
|
|
, colorOrange(colorOrange)
|
|
|
|
, colorPurple(colorPurple) {
|
2021-04-13 21:13:03 +00:00
|
|
|
}
|
|
|
|
std::unique_ptr<GrGLSLFragmentProcessor> onMakeProgramImpl() const override;
|
|
|
|
void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
|
|
|
|
bool onIsEqual(const GrFragmentProcessor&) const override;
|
|
|
|
#if GR_TEST_UTILS
|
|
|
|
SkString onDumpInfo() const override;
|
|
|
|
#endif
|
|
|
|
GR_DECLARE_FRAGMENT_PROCESSOR_TEST
|
|
|
|
using INHERITED = GrFragmentProcessor;
|
|
|
|
};
|
|
|
|
#endif
|