Flutter Engine
The Flutter Engine
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
9
10#include "src/sksl/SkSLUtil.h"
11
13 static SkCapabilities* sCaps = []() {
16 return caps;
17 }();
18
19 return sk_ref_sp(sCaps);
20}
21
23 this->fSkSLVersion = shaderCaps->supportedSkSLVerion();
24}
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
SkCapabilities()=default
static sk_sp< const SkCapabilities > RasterBackend()
SkSL::Version fSkSLVersion
void initSkCaps(const SkSL::ShaderCaps *)
SkSL::Version supportedSkSLVerion() const
Definition: SkSLUtil.h:72