Flutter Engine
The Flutter Engine
SkSL_ColorSpaces.cpp
Go to the documentation of this file.
1// Copyright 2024 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4REG_FIDDLE(SkSL_ColorSpaces, 512, 256, false, 3) {
5void draw(SkCanvas* canvas) {
8 canvas->drawImage(image, 0, 0);
10}} // END FIDDLE
static sk_sp< SkColorSpace > rec2020()
REG_FIDDLE(SkSL_ColorSpaces, 512, 256, false, 3)
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