xref: /aosp_15_r20/external/skia/include/gpu/ganesh/mtl/GrMtlBackendContext.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2020 Google Inc.
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 GrMtlBackendContext_DEFINED
9 #define GrMtlBackendContext_DEFINED
10 
11 #include "include/gpu/ganesh/mtl/GrMtlTypes.h"
12 #include "include/ports/SkCFObject.h"
13 
14 // The BackendContext contains all of the base Metal objects needed by the GrMtlGpu. The assumption
15 // is that the client will set these up and pass them to the GrMtlGpu constructor.
16 struct SK_API GrMtlBackendContext {
17     sk_cfp<GrMTLHandle> fDevice;
18     sk_cfp<GrMTLHandle> fQueue;
19 };
20 
21 #endif
22