Flutter Engine
The Flutter Engine
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
gradients_2pt_conical.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkGradientShader.h"

Go to the source code of this file.

Classes

struct  skiagm::GradData
 
class  skiagm::ConicalGradientsGM
 

Namespaces

namespace  skiagm
 

Typedefs

typedef sk_sp< SkShader >(* skiagm::GradMaker) (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 

Enumerations

enum  skiagm::GradCaseType { skiagm::kOutside_GradCaseType , skiagm::kInside_GradCaseType , skiagm::kEdge_GradCaseType }
 

Functions

static sk_sp< SkShaderskiagm::Make2ConicalOutside (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalOutsideStrip (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalOutsideFlip (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalInside (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalInsideFlip (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalInsideCenter (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalInsideCenterReversed (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRad (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadFlip (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadCenter (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadOutside (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadFlipOutside (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalEdgeX (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalEdgeY (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadEdgeX (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalZeroRadEdgeY (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalTouchX (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalTouchY (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 
static sk_sp< SkShaderskiagm::Make2ConicalInsideSmallRad (const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
 

Variables

constexpr SkColor skiagm::gColors []
 
constexpr SkScalar skiagm::gPos0 [] = { 0, SK_Scalar1 }
 
constexpr SkScalar skiagm::gPos1 [] = { SK_Scalar1/4, SK_Scalar1*3/4 }
 
constexpr SkScalar skiagm::gPos2 []
 
constexpr SkScalar skiagm::gPosClamp [] = {0.0f, 0.0f, 1.0f, 1.0f}
 
constexpr SkColor skiagm::gColorClamp []
 
constexpr GradData skiagm::gGradData []
 
constexpr GradMaker skiagm::gGradMakersOutside []
 
constexpr GradMaker skiagm::gGradMakersInside []
 
constexpr GradMaker skiagm::gGradMakersEdgeCases []
 
struct {
   const GradMaker *   skiagm::fMaker
 
   const int   skiagm::fCount
 
   const char *   skiagm::fName
 
skiagm::gGradCases []