Flutter Engine
The Flutter Engine
Functions
SkSL_ColorSpaces.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (SkSL_ColorSpaces, 512, 256, false, 3)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( SkSL_ColorSpaces  ,
512  ,
256  ,
false  ,
 
)

Definition at line 4 of file SkSL_ColorSpaces.cpp.

4 {
5void draw(SkCanvas* canvas) {
8 canvas->drawImage(image, 0, 0);
10}} // END FIDDLE
static sk_sp< SkColorSpace > rec2020()
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
Definition: SkCanvas.h:1528
static sk_sp< SkColorSpace > MakeRGB(const skcms_TransferFunction &transferFn, const skcms_Matrix3x3 &toXYZ)
sk_sp< SkImage > reinterpretColorSpace(sk_sp< SkColorSpace > newColorSpace) const
Definition: SkImage.cpp:241
static constexpr skcms_Matrix3x3 kRec2020
Definition: SkColorSpace.h:93
static constexpr skcms_TransferFunction kSRGB
Definition: SkColorSpace.h:45
sk_sp< const SkImage > image
Definition: SkRecords.h:269