| 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 |
sk_sp<SkFlattenable> SkEmptyShader::CreateProc(SkReadBuffer&) { |
| 17 |
return SkShaders::Empty(); |
| 18 |
} |
| 19 |
|
| 20 |
sk_sp<SkShader> SkShaders::Empty() { return sk_make_sp<SkEmptyShader>(); } |
| 21 |
|
| 22 |
void SkRegisterEmptyShaderFlattenable() { |
| 23 |
SK_REGISTER_FLATTENABLE(SkEmptyShader); |
| 24 |
} |