Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Macros | Functions
SkConicalGradient.cpp File Reference
#include "src/shaders/gradients/SkConicalGradient.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkShader.h"
#include "include/core/SkTileMode.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkTArray.h"
#include "src/base/SkArenaAlloc.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkRasterPipelineOpContexts.h"
#include "src/core/SkRasterPipelineOpList.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include "src/shaders/SkLocalMatrixShader.h"
#include "src/shaders/SkShaderBase.h"
#include "src/shaders/gradients/SkGradientBaseShader.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Macros

#define EXPAND_1_COLOR(count)
 

Functions

void SkRegisterConicalGradientShaderFlattenable ()
 

Macro Definition Documentation

◆ EXPAND_1_COLOR

#define EXPAND_1_COLOR (   count)
Value:
SkColor4f tmp[2]; \
do { \
if (1 == count) { \
tmp[0] = tmp[1] = colors[0]; \
colors = tmp; \
pos = nullptr; \
count = 2; \
} \
} while (0)
int count
SkPoint pos

Definition at line 250 of file SkConicalGradient.cpp.

252 { \
253 if (1 == count) { \
254 tmp[0] = tmp[1] = colors[0]; \
255 colors = tmp; \
256 pos = nullptr; \
257 count = 2; \
258 } \
259 } while (0)
PODArray< SkColor > colors
Definition SkRecords.h:276

Function Documentation

◆ SkRegisterConicalGradientShaderFlattenable()

void SkRegisterConicalGradientShaderFlattenable ( )

Definition at line 361 of file SkConicalGradient.cpp.

361 {
363 // Previous name
364 SkFlattenable::Register("SkTwoPointConicalGradient", SkConicalGradient::CreateProc);
365}
#define SK_REGISTER_FLATTENABLE(type)
static void Register(const char name[], Factory)