Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / include / gpu / graphite / mtl / MtlBackendContext.h
1 /*
2  * Copyright 2021 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_MtlBackendContext_DEFINED
9 #define skgpu_graphite_MtlBackendContext_DEFINED
10
11 #include "include/gpu/graphite/mtl/MtlTypes.h"
12
13 namespace skgpu::graphite {
14
15 // The MtlBackendContext contains all of the base Metal objects needed by the MtlGpu. The assumption
16 // is that the client will set these up and pass them to the MtlGpu constructor.
17 struct SK_API MtlBackendContext {
18     sk_cfp<CFTypeRef> fDevice;
19     sk_cfp<CFTypeRef> fQueue;
20 };
21
22 } // namespace skgpu::graphite
23
24 #endif // skgpu_graphite_MtlBackendContext_DEFINED