530933006d
The generated code does not assign to sk_OutColor correctly; it assigns into the `factorial` function name instead, which doesn't make sense. Change-Id: Ibad1d47f2f9c4fbb410b5277cea6e1022daf8b9d Bug: skia:10684 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/329360 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
|
|
|
|
/**************************************************************************************************
|
|
*** This file was autogenerated from GrRecursion.fp; do not modify.
|
|
**************************************************************************************************/
|
|
#ifndef GrRecursion_DEFINED
|
|
#define GrRecursion_DEFINED
|
|
|
|
#include "include/core/SkM44.h"
|
|
#include "include/core/SkTypes.h"
|
|
|
|
|
|
#include "src/gpu/GrFragmentProcessor.h"
|
|
|
|
class GrRecursion : public GrFragmentProcessor {
|
|
public:
|
|
static std::unique_ptr<GrFragmentProcessor> Make() {
|
|
return std::unique_ptr<GrFragmentProcessor>(new GrRecursion());
|
|
}
|
|
GrRecursion(const GrRecursion& src);
|
|
std::unique_ptr<GrFragmentProcessor> clone() const override;
|
|
const char* name() const override { return "Recursion"; }
|
|
bool usesExplicitReturn() const override;
|
|
private:
|
|
GrRecursion()
|
|
: INHERITED(kGrRecursion_ClassID, kNone_OptimizationFlags) {
|
|
}
|
|
GrGLSLFragmentProcessor* onCreateGLSLInstance() 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
|