Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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/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
Definition: FontMgrTest.cpp:50
PODArray< SkColor > colors
Definition: SkRecords.h:276

Definition at line 257 of file SkConicalGradient.cpp.

Function Documentation

◆ SkRegisterConicalGradientShaderFlattenable()

void SkRegisterConicalGradientShaderFlattenable ( )

Definition at line 368 of file SkConicalGradient.cpp.

368 {
370 // Previous name
371 SkFlattenable::Register("SkTwoPointConicalGradient", SkConicalGradient::CreateProc);
372}
#define SK_REGISTER_FLATTENABLE(type)
static void Register(const char name[], Factory)