/* * Copyright 2022 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/shaders/SkEmptyShader.h" #include "include/core/SkFlattenable.h" #include "include/core/SkRefCnt.h" #include "include/core/SkShader.h" class SkReadBuffer; sk_sp SkEmptyShader::CreateProc(SkReadBuffer&) { return SkShaders::Empty(); } sk_sp SkShaders::Empty() { return sk_make_sp(); } void SkRegisterEmptyShaderFlattenable() { SK_REGISTER_FLATTENABLE(SkEmptyShader); }