Flutter Engine
The Flutter Engine
third_party
skia
src
shaders
SkEmptyShader.cpp
Go to the documentation of this file.
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
}
SkRegisterEmptyShaderFlattenable
void SkRegisterEmptyShaderFlattenable()
Definition:
SkEmptyShader.cpp:22
SkEmptyShader.h
SkFlattenable.h
SK_REGISTER_FLATTENABLE
#define SK_REGISTER_FLATTENABLE(type)
Definition:
SkFlattenable.h:105
SkRefCnt.h
SkShader.h
SkEmptyShader
Definition:
SkEmptyShader.h:22
SkReadBuffer
Definition:
SkReadBuffer.h:52
sk_sp< SkFlattenable >
SkShaders::Empty
SK_API sk_sp< SkShader > Empty()
Definition:
SkEmptyShader.cpp:20
Generated on Sun Jun 23 2024 21:56:32 for Flutter Engine by
1.9.4