@shopify/react-native-skia 2.6.1 → 2.6.3-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cpp/dawn/include/dawn/dawn_proc.h +50 -0
- package/cpp/dawn/include/dawn/dawn_proc_table.h +326 -0
- package/cpp/dawn/include/dawn/dawn_thread_dispatch_proc.h +47 -0
- package/cpp/dawn/include/dawn/native/D3D11Backend.h +65 -0
- package/cpp/dawn/include/dawn/native/D3D12Backend.h +102 -0
- package/cpp/dawn/include/dawn/native/D3DBackend.h +56 -0
- package/cpp/dawn/include/dawn/native/DawnNative.h +369 -0
- package/cpp/dawn/include/dawn/native/MetalBackend.h +56 -0
- package/cpp/dawn/include/dawn/native/NullBackend.h +39 -0
- package/cpp/dawn/include/dawn/native/OpenGLBackend.h +89 -0
- package/cpp/dawn/include/dawn/native/VulkanBackend.h +183 -0
- package/cpp/dawn/include/dawn/native/WebGPUBackend.h +49 -0
- package/cpp/dawn/include/dawn/native/dawn_native_export.h +49 -0
- package/cpp/dawn/include/dawn/platform/DawnPlatform.h +203 -0
- package/cpp/dawn/include/dawn/platform/dawn_platform_export.h +49 -0
- package/cpp/dawn/include/dawn/replay/Replay.h +75 -0
- package/cpp/dawn/include/dawn/replay/dawn_replay_export.h +49 -0
- package/cpp/dawn/include/dawn/webgpu_cpp_print.h +2752 -0
- package/cpp/dawn/include/tint/tint.h +90 -0
- package/cpp/dawn/include/webgpu/webgpu.h +4902 -0
- package/cpp/dawn/include/webgpu/webgpu_cpp.h +10261 -0
- package/cpp/dawn/include/webgpu/webgpu_cpp_chained_struct.h +57 -0
- package/cpp/dawn/include/webgpu/webgpu_enum_class_bitmasks.h +161 -0
- package/cpp/dawn/include/webgpu/webgpu_glfw.h +88 -0
- package/cpp/skia/src/gpu/graphite/ContextOptionsPriv.h +45 -0
- package/cpp/skia/src/gpu/graphite/ResourceTypes.h +360 -0
- package/cpp/skia/src/gpu/graphite/TextureProxyView.h +105 -0
- package/package.json +7 -6
- package/scripts/install-libs.js +44 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright 2023 The Dawn & Tint Authors
|
|
2
|
+
//
|
|
3
|
+
// Redistribution and use in source and binary forms, with or without
|
|
4
|
+
// modification, are permitted provided that the following conditions are met:
|
|
5
|
+
//
|
|
6
|
+
// 1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
// list of conditions and the following disclaimer.
|
|
8
|
+
//
|
|
9
|
+
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
// this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
// and/or other materials provided with the distribution.
|
|
12
|
+
//
|
|
13
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
14
|
+
// contributors may be used to endorse or promote products derived from
|
|
15
|
+
// this software without specific prior written permission.
|
|
16
|
+
//
|
|
17
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
|
|
28
|
+
#ifdef __EMSCRIPTEN__
|
|
29
|
+
#error "Do not include this header. Emscripten already provides headers needed for WebGPU."
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
#ifndef WEBGPU_CPP_CHAINED_STRUCT_H_
|
|
33
|
+
#define WEBGPU_CPP_CHAINED_STRUCT_H_
|
|
34
|
+
|
|
35
|
+
#include <cstddef>
|
|
36
|
+
#include <cstdint>
|
|
37
|
+
|
|
38
|
+
// This header file declares the ChainedStruct structures separately from the WebGPU
|
|
39
|
+
// headers so that dependencies can directly extend structures without including the larger header
|
|
40
|
+
// which exposes capabilities that may require correctly set proc tables.
|
|
41
|
+
namespace wgpu {
|
|
42
|
+
|
|
43
|
+
enum class SType : uint32_t;
|
|
44
|
+
|
|
45
|
+
struct ChainedStruct {
|
|
46
|
+
ChainedStruct const * nextInChain = nullptr;
|
|
47
|
+
SType sType = SType(0u);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
struct ChainedStructOut {
|
|
51
|
+
ChainedStructOut * nextInChain = nullptr;
|
|
52
|
+
SType sType = SType(0u);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
} // namespace wgpu}
|
|
56
|
+
|
|
57
|
+
#endif // WEBGPU_CPP_CHAINED_STRUCT_H_
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// Copyright 2017 The Dawn & Tint Authors
|
|
2
|
+
//
|
|
3
|
+
// Redistribution and use in source and binary forms, with or without
|
|
4
|
+
// modification, are permitted provided that the following conditions are met:
|
|
5
|
+
//
|
|
6
|
+
// 1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
// list of conditions and the following disclaimer.
|
|
8
|
+
//
|
|
9
|
+
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
// this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
// and/or other materials provided with the distribution.
|
|
12
|
+
//
|
|
13
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
14
|
+
// contributors may be used to endorse or promote products derived from
|
|
15
|
+
// this software without specific prior written permission.
|
|
16
|
+
//
|
|
17
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
|
|
28
|
+
#ifndef WEBGPU_ENUM_CLASS_BITMASKS_H_
|
|
29
|
+
#define WEBGPU_ENUM_CLASS_BITMASKS_H_
|
|
30
|
+
|
|
31
|
+
#include <type_traits>
|
|
32
|
+
|
|
33
|
+
// The operators in wgpu:: namespace need be introduced into other namespaces with
|
|
34
|
+
// using-declarations for C++ Argument Dependent Lookup to work.
|
|
35
|
+
#define WGPU_IMPORT_BITMASK_OPERATORS \
|
|
36
|
+
using wgpu::operator|; \
|
|
37
|
+
using wgpu::operator&; \
|
|
38
|
+
using wgpu::operator^; \
|
|
39
|
+
using wgpu::operator~; \
|
|
40
|
+
using wgpu::operator&=; \
|
|
41
|
+
using wgpu::operator|=; \
|
|
42
|
+
using wgpu::operator^=; \
|
|
43
|
+
using wgpu::HasZeroOrOneBits;
|
|
44
|
+
|
|
45
|
+
namespace wgpu {
|
|
46
|
+
|
|
47
|
+
template <typename T>
|
|
48
|
+
struct IsWGPUBitmask {
|
|
49
|
+
static constexpr bool enable = false;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
template <typename T, typename Enable = void>
|
|
53
|
+
struct LowerBitmask {
|
|
54
|
+
static constexpr bool enable = false;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
template <typename T>
|
|
58
|
+
struct LowerBitmask<T, typename std::enable_if<IsWGPUBitmask<T>::enable>::type> {
|
|
59
|
+
static constexpr bool enable = true;
|
|
60
|
+
using type = T;
|
|
61
|
+
constexpr static T Lower(T t) { return t; }
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
template <typename T>
|
|
65
|
+
struct BoolConvertible {
|
|
66
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
67
|
+
|
|
68
|
+
// NOLINTNEXTLINE(runtime/explicit)
|
|
69
|
+
explicit constexpr BoolConvertible(Integral value) : value(value) {}
|
|
70
|
+
constexpr operator bool() const { return value != 0; }
|
|
71
|
+
constexpr operator T() const { return static_cast<T>(value); }
|
|
72
|
+
|
|
73
|
+
Integral value;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
template <typename T>
|
|
77
|
+
struct LowerBitmask<BoolConvertible<T>> {
|
|
78
|
+
static constexpr bool enable = true;
|
|
79
|
+
using type = T;
|
|
80
|
+
static constexpr type Lower(BoolConvertible<T> t) { return t; }
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
template <
|
|
84
|
+
typename T1,
|
|
85
|
+
typename T2,
|
|
86
|
+
typename = typename std::enable_if<LowerBitmask<T1>::enable && LowerBitmask<T2>::enable>::type>
|
|
87
|
+
constexpr BoolConvertible<typename LowerBitmask<T1>::type> operator|(T1 left, T2 right) {
|
|
88
|
+
using T = typename LowerBitmask<T1>::type;
|
|
89
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
90
|
+
return BoolConvertible<T>(static_cast<Integral>(LowerBitmask<T1>::Lower(left)) |
|
|
91
|
+
static_cast<Integral>(LowerBitmask<T2>::Lower(right)));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
template <
|
|
95
|
+
typename T1,
|
|
96
|
+
typename T2,
|
|
97
|
+
typename = typename std::enable_if<LowerBitmask<T1>::enable && LowerBitmask<T2>::enable>::type>
|
|
98
|
+
constexpr BoolConvertible<typename LowerBitmask<T1>::type> operator&(T1 left, T2 right) {
|
|
99
|
+
using T = typename LowerBitmask<T1>::type;
|
|
100
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
101
|
+
return BoolConvertible<T>(static_cast<Integral>(LowerBitmask<T1>::Lower(left)) &
|
|
102
|
+
static_cast<Integral>(LowerBitmask<T2>::Lower(right)));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
template <
|
|
106
|
+
typename T1,
|
|
107
|
+
typename T2,
|
|
108
|
+
typename = typename std::enable_if<LowerBitmask<T1>::enable && LowerBitmask<T2>::enable>::type>
|
|
109
|
+
constexpr BoolConvertible<typename LowerBitmask<T1>::type> operator^(T1 left, T2 right) {
|
|
110
|
+
using T = typename LowerBitmask<T1>::type;
|
|
111
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
112
|
+
return BoolConvertible<T>(static_cast<Integral>(LowerBitmask<T1>::Lower(left)) ^
|
|
113
|
+
static_cast<Integral>(LowerBitmask<T2>::Lower(right)));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
template <typename T1>
|
|
117
|
+
constexpr BoolConvertible<typename LowerBitmask<T1>::type> operator~(T1 t) {
|
|
118
|
+
using T = typename LowerBitmask<T1>::type;
|
|
119
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
120
|
+
return BoolConvertible<T>(~static_cast<Integral>(LowerBitmask<T1>::Lower(t)));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
template <
|
|
124
|
+
typename T,
|
|
125
|
+
typename T2,
|
|
126
|
+
typename = typename std::enable_if<IsWGPUBitmask<T>::enable && LowerBitmask<T2>::enable>::type>
|
|
127
|
+
constexpr T& operator&=(T& l, T2 right) {
|
|
128
|
+
T r = LowerBitmask<T2>::Lower(right);
|
|
129
|
+
l = l & r;
|
|
130
|
+
return l;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
template <
|
|
134
|
+
typename T,
|
|
135
|
+
typename T2,
|
|
136
|
+
typename = typename std::enable_if<IsWGPUBitmask<T>::enable && LowerBitmask<T2>::enable>::type>
|
|
137
|
+
constexpr T& operator|=(T& l, T2 right) {
|
|
138
|
+
T r = LowerBitmask<T2>::Lower(right);
|
|
139
|
+
l = l | r;
|
|
140
|
+
return l;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
template <
|
|
144
|
+
typename T,
|
|
145
|
+
typename T2,
|
|
146
|
+
typename = typename std::enable_if<IsWGPUBitmask<T>::enable && LowerBitmask<T2>::enable>::type>
|
|
147
|
+
constexpr T& operator^=(T& l, T2 right) {
|
|
148
|
+
T r = LowerBitmask<T2>::Lower(right);
|
|
149
|
+
l = l ^ r;
|
|
150
|
+
return l;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
template <typename T>
|
|
154
|
+
constexpr bool HasZeroOrOneBits(T value) {
|
|
155
|
+
using Integral = typename std::underlying_type<T>::type;
|
|
156
|
+
return (static_cast<Integral>(value) & (static_cast<Integral>(value) - 1)) == 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
} // namespace wgpu
|
|
160
|
+
|
|
161
|
+
#endif // WEBGPU_ENUM_CLASS_BITMASKS_H_
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// Copyright 2022 The Dawn & Tint Authors
|
|
2
|
+
//
|
|
3
|
+
// Redistribution and use in source and binary forms, with or without
|
|
4
|
+
// modification, are permitted provided that the following conditions are met:
|
|
5
|
+
//
|
|
6
|
+
// 1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
// list of conditions and the following disclaimer.
|
|
8
|
+
//
|
|
9
|
+
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
// this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
// and/or other materials provided with the distribution.
|
|
12
|
+
//
|
|
13
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
14
|
+
// contributors may be used to endorse or promote products derived from
|
|
15
|
+
// this software without specific prior written permission.
|
|
16
|
+
//
|
|
17
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
|
|
28
|
+
#ifndef INCLUDE_WEBGPU_WEBGPU_GLFW_H_
|
|
29
|
+
#define INCLUDE_WEBGPU_WEBGPU_GLFW_H_
|
|
30
|
+
|
|
31
|
+
#ifdef __cplusplus
|
|
32
|
+
#include <memory>
|
|
33
|
+
|
|
34
|
+
#include "webgpu/webgpu_cpp.h"
|
|
35
|
+
#else
|
|
36
|
+
#include "webgpu/webgpu.h"
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
#if defined(WGPU_GLFW_SHARED_LIBRARY)
|
|
40
|
+
#if defined(_WIN32)
|
|
41
|
+
#if defined(WGPU_GLFW_IMPLEMENTATION)
|
|
42
|
+
#define WGPU_GLFW_EXPORT __declspec(dllexport)
|
|
43
|
+
#else
|
|
44
|
+
#define WGPU_GLFW_EXPORT __declspec(dllimport)
|
|
45
|
+
#endif
|
|
46
|
+
#else // defined(_WIN32)
|
|
47
|
+
#if defined(WGPU_GLFW_IMPLEMENTATION)
|
|
48
|
+
#define WGPU_GLFW_EXPORT __attribute__((visibility("default")))
|
|
49
|
+
#else
|
|
50
|
+
#define WGPU_GLFW_EXPORT
|
|
51
|
+
#endif
|
|
52
|
+
#endif // defined(_WIN32)
|
|
53
|
+
#else // defined(WGPU_GLFW_SHARED_LIBRARY)
|
|
54
|
+
#define WGPU_GLFW_EXPORT
|
|
55
|
+
#endif // defined(WGPU_GLFW_SHARED_LIBRARY)
|
|
56
|
+
|
|
57
|
+
struct GLFWwindow;
|
|
58
|
+
|
|
59
|
+
#ifdef __cplusplus
|
|
60
|
+
extern "C" {
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
WGPU_GLFW_EXPORT WGPUSurface wgpuGlfwCreateSurfaceForWindow(const WGPUInstance instance,
|
|
64
|
+
struct GLFWwindow* window);
|
|
65
|
+
|
|
66
|
+
#ifdef __cplusplus
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
namespace wgpu::glfw {
|
|
70
|
+
|
|
71
|
+
// Does the necessary setup on the GLFWwindow to allow creating a wgpu::Surface with it and
|
|
72
|
+
// calls `instance.CreateSurface` with the correct descriptor for this window.
|
|
73
|
+
// Returns a null wgpu::Surface on failure.
|
|
74
|
+
WGPU_GLFW_EXPORT wgpu::Surface CreateSurfaceForWindow(const wgpu::Instance& instance,
|
|
75
|
+
GLFWwindow* window);
|
|
76
|
+
|
|
77
|
+
// Use for testing only. Does everything that CreateSurfaceForWindow does except the call to
|
|
78
|
+
// CreateSurface. Useful to be able to modify the descriptor for testing, or when trying to
|
|
79
|
+
// avoid using the global proc table.
|
|
80
|
+
// NOLINTNEXTLINE(build/include_what_you_use)
|
|
81
|
+
WGPU_GLFW_EXPORT std::unique_ptr<wgpu::ChainedStruct, void (*)(wgpu::ChainedStruct*)>
|
|
82
|
+
SetupWindowAndGetSurfaceDescriptor(GLFWwindow* window);
|
|
83
|
+
|
|
84
|
+
} // namespace wgpu::glfw
|
|
85
|
+
|
|
86
|
+
#endif
|
|
87
|
+
|
|
88
|
+
#endif // INCLUDE_WEBGPU_WEBGPU_GLFW_H_
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 skgpu_graphite_ContextOptionsPriv_DEFINED
|
|
9
|
+
#define skgpu_graphite_ContextOptionsPriv_DEFINED
|
|
10
|
+
|
|
11
|
+
#include "include/private/base/SkMath.h"
|
|
12
|
+
|
|
13
|
+
#include <optional>
|
|
14
|
+
|
|
15
|
+
namespace skgpu::graphite {
|
|
16
|
+
|
|
17
|
+
enum class PathRendererStrategy;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Private options that are only meant for testing within Skia's tools.
|
|
21
|
+
*/
|
|
22
|
+
struct ContextOptionsPriv {
|
|
23
|
+
|
|
24
|
+
int fMaxTextureSizeOverride = SK_MaxS32;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* If true, will store a pointer in Recorder that points back to the Context
|
|
28
|
+
* that created it. Used by readPixels() and other methods that normally require a Context.
|
|
29
|
+
*/
|
|
30
|
+
bool fStoreContextRefInRecorder = false;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* If true, enables layer based draw ordering.
|
|
34
|
+
*/
|
|
35
|
+
bool fDrawListLayer = false;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Override Caps' default strategy heuristics to prioritize this one if set *and* is supported.
|
|
39
|
+
*/
|
|
40
|
+
std::optional<PathRendererStrategy> fPathRendererStrategy;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
} // namespace skgpu::graphite
|
|
44
|
+
|
|
45
|
+
#endif // skgpu_graphite_ContextOptionsPriv_DEFINED
|