/src/skia/src/shaders/SkEmptyShader.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright 2022 Google LLC |
3 | | * |
4 | | * Use of this source code is governed by a BSD-style license that can be |
5 | | * found in the LICENSE file. |
6 | | */ |
7 | | |
8 | | #include "src/shaders/SkEmptyShader.h" |
9 | | |
10 | | #include "include/core/SkFlattenable.h" |
11 | | #include "include/core/SkRefCnt.h" |
12 | | #include "include/core/SkShader.h" |
13 | | |
14 | | class SkReadBuffer; |
15 | | |
16 | 50 | sk_sp<SkFlattenable> SkEmptyShader::CreateProc(SkReadBuffer&) { |
17 | 50 | return SkShaders::Empty(); |
18 | 50 | } |
19 | | |
20 | 12.8k | sk_sp<SkShader> SkShaders::Empty() { return sk_make_sp<SkEmptyShader>(); } |
21 | | |
22 | 3 | void SkRegisterEmptyShaderFlattenable() { |
23 | 3 | SK_REGISTER_FLATTENABLE(SkEmptyShader); |
24 | 3 | } |