Flutter Engine
The Flutter Engine
Functions | Variables
SkGainmapShader.cpp File Reference
#include "include/private/SkGainmapShader.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkImage.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "include/effects/SkRuntimeEffect.h"
#include "include/private/SkGainmapInfo.h"
#include "include/private/base/SkAssert.h"
#include "src/core/SkColorFilterPriv.h"
#include "src/core/SkImageInfoPriv.h"
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Functions

static sk_sp< SkRuntimeEffectgainmap_apply_effect ()
 
static bool all_channels_equal (const SkColor4f &c)
 

Variables

static constexpr char gGainmapSKSL []
 

Function Documentation

◆ all_channels_equal()

static bool all_channels_equal ( const SkColor4f c)
static

Definition at line 86 of file SkGainmapShader.cpp.

86 {
87 return c.fR == c.fG && c.fR == c.fB;
88}

◆ gainmap_apply_effect()

static sk_sp< SkRuntimeEffect > gainmap_apply_effect ( )
static

Definition at line 79 of file SkGainmapShader.cpp.

79 {
80 static const SkRuntimeEffect* effect =
82 SkASSERT(effect);
83 return sk_ref_sp(effect);
84}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static constexpr char gGainmapSKSL[]
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
static Result MakeForShader(SkString sksl, const Options &)

Variable Documentation

◆ gGainmapSKSL

constexpr char gGainmapSKSL[]
staticconstexpr

Definition at line 26 of file SkGainmapShader.cpp.