Flutter Engine
The Flutter Engine
third_party
skia
src
core
SkCapabilities.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 "
include/core/SkCapabilities.h
"
9
10
#include "
src/sksl/SkSLUtil.h
"
11
12
sk_sp<const SkCapabilities>
SkCapabilities::RasterBackend
() {
13
static
SkCapabilities
* sCaps = []() {
14
SkCapabilities
* caps =
new
SkCapabilities
;
15
caps->
fSkSLVersion
=
SkSL::Version::k100
;
16
return
caps;
17
}();
18
19
return
sk_ref_sp
(sCaps);
20
}
21
22
void
SkCapabilities::initSkCaps
(
const
SkSL::ShaderCaps
* shaderCaps) {
23
this->
fSkSLVersion
= shaderCaps->
supportedSkSLVerion
();
24
}
SkCapabilities.h
sk_ref_sp
sk_sp< T > sk_ref_sp(T *obj)
Definition:
SkRefCnt.h:381
SkSLUtil.h
SkCapabilities
Definition:
SkCapabilities.h:21
SkCapabilities::SkCapabilities
SkCapabilities()=default
SkCapabilities::RasterBackend
static sk_sp< const SkCapabilities > RasterBackend()
Definition:
SkCapabilities.cpp:12
SkCapabilities::fSkSLVersion
SkSL::Version fSkSLVersion
Definition:
SkCapabilities.h:36
SkCapabilities::initSkCaps
void initSkCaps(const SkSL::ShaderCaps *)
Definition:
SkCapabilities.cpp:22
sk_sp
Definition:
SkRefCnt.h:220
SkSL::Version::k100
@ k100
SkSL::ShaderCaps
Definition:
SkSLUtil.h:26
SkSL::ShaderCaps::supportedSkSLVerion
SkSL::Version supportedSkSLVerion() const
Definition:
SkSLUtil.h:72
Generated on Sun Jun 23 2024 21:56:11 for Flutter Engine by
1.9.4