Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
ClearBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRect.h"
#include "include/effects/SkGradientShader.h"
#include "src/core/SkCanvasPriv.h"
#include "src/gpu/ganesh/GrCanvas.h"
#include "src/gpu/ganesh/SurfaceDrawContext.h"

Go to the source code of this file.

Classes

class  ClearBench
 

Functions

static sk_sp< SkShadermake_shader ()
 

Function Documentation

◆ make_shader()

static sk_sp< SkShader > make_shader ( )
static

Definition at line 24 of file ClearBench.cpp.

24 {
25 static const SkPoint kPts[] = {{0, 0}, {10, 10}};
26 static const SkColor kColors[] = {SK_ColorBLUE, SK_ColorWHITE};
27 return SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, SkTileMode::kClamp);
28}
uint32_t SkColor
Definition SkColor.h:37
constexpr SkColor SK_ColorBLUE
Definition SkColor.h:135
constexpr SkColor SK_ColorWHITE
Definition SkColor.h:122
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
const DlColor kColors[]