Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 77 of file SkGainmapShader.cpp.

77 {
78 return c.fR == c.fG && c.fR == c.fB;
79}

◆ gainmap_apply_effect()

static sk_sp< SkRuntimeEffect > gainmap_apply_effect ( )
static

Definition at line 70 of file SkGainmapShader.cpp.

70 {
71 static const SkRuntimeEffect* effect =
73 SkASSERT(effect);
74 return sk_ref_sp(effect);
75}
#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.