/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /************************************************************************************************** *** This file was autogenerated from GrSingleIntervalGradientColorizer.fp; do not modify. **************************************************************************************************/ #ifndef GrSingleIntervalGradientColorizer_DEFINED #define GrSingleIntervalGradientColorizer_DEFINED #include "SkTypes.h" #include "GrFragmentProcessor.h" #include "GrCoordTransform.h" class GrSingleIntervalGradientColorizer : public GrFragmentProcessor { public: const SkPMColor4f& start() const { return fStart; } const SkPMColor4f& end() const { return fEnd; } static std::unique_ptr Make(SkPMColor4f start, SkPMColor4f end) { return std::unique_ptr( new GrSingleIntervalGradientColorizer(start, end)); } GrSingleIntervalGradientColorizer(const GrSingleIntervalGradientColorizer& src); std::unique_ptr clone() const override; const char* name() const override { return "SingleIntervalGradientColorizer"; } private: GrSingleIntervalGradientColorizer(SkPMColor4f start, SkPMColor4f end) : INHERITED(kGrSingleIntervalGradientColorizer_ClassID, kNone_OptimizationFlags) , fStart(start) , fEnd(end) {} GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override; bool onIsEqual(const GrFragmentProcessor&) const override; GR_DECLARE_FRAGMENT_PROCESSOR_TEST SkPMColor4f fStart; SkPMColor4f fEnd; typedef GrFragmentProcessor INHERITED; }; #endif