Flutter Engine
The Flutter Engine
SkCapabilities.h
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#ifndef SkCapabilities_DEFINED
9#define SkCapabilities_DEFINED
10
14
15namespace SkSL { struct ShaderCaps; }
16
17#if defined(SK_GRAPHITE)
18namespace skgpu::graphite { class Caps; }
19#endif
20
22public:
23 static sk_sp<const SkCapabilities> RasterBackend();
24
25 SkSL::Version skslVersion() const { return fSkSLVersion; }
26
27protected:
28#if defined(SK_GRAPHITE)
29 friend class skgpu::graphite::Caps; // for ctor
30#endif
31
32 SkCapabilities() = default;
33
34 void initSkCaps(const SkSL::ShaderCaps*);
35
37};
38
39#endif
#define SK_API
Definition: SkAPI.h:35
SkCapabilities()=default
SkSL::Version skslVersion() const