Flutter Engine
The Flutter Engine
Functions
SkPictureShader.cpp File Reference
#include "src/shaders/SkPictureShader.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImage.h"
#include "include/core/SkPoint.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTileMode.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/base/SkArenaAlloc.h"
#include "src/core/SkEffectPriv.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/core/SkMatrixPriv.h"
#include "src/core/SkPicturePriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkResourceCache.h"
#include "src/core/SkWriteBuffer.h"
#include "src/shaders/SkLocalMatrixShader.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Functions

static sk_sp< SkColorSpaceref_or_srgb (SkColorSpace *cs)
 

Function Documentation

◆ ref_or_srgb()

static sk_sp< SkColorSpace > ref_or_srgb ( SkColorSpace cs)
static

Definition at line 176 of file SkPictureShader.cpp.

176 {
177 return cs ? sk_ref_sp(cs) : SkColorSpace::MakeSRGB();
178}
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381