blob: 00f98d416e2727a69e5ae580c70ba01f1ef87e3b [file] [log] [blame]
* Copyright 2017 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 GrCircleEffect.fp; do not modify.
#ifndef GrCircleEffect_DEFINED
#define GrCircleEffect_DEFINED
#include "SkTypes.h"
#include "GrFragmentProcessor.h"
#include "GrCoordTransform.h"
#include "GrColorSpaceXform.h"
#include "effects/GrProxyMove.h"
class GrCircleEffect : public GrFragmentProcessor {
int edgeType() const { return fEdgeType; }
SkPoint center() const { return fCenter; }
float radius() const { return fRadius; }
static sk_sp<GrFragmentProcessor> Make(int edgeType, SkPoint center, float radius) {
return sk_sp<GrFragmentProcessor>(new GrCircleEffect(edgeType, center, radius));
const char* name() const override { return "CircleEffect"; }
GrCircleEffect(int edgeType, SkPoint center, float radius)
: INHERITED((OptimizationFlags)kCompatibleWithCoverageAsAlpha_OptimizationFlag)
, fEdgeType(edgeType)
, fCenter(center)
, fRadius(radius) {
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override;
void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
bool onIsEqual(const GrFragmentProcessor&) const override;
int fEdgeType;
SkPoint fCenter;
float fRadius;
typedef GrFragmentProcessor INHERITED;