Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrMtlDirectContext.mm
Go to the documentation of this file.
1/*
2 * Copyright 2024 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 */
8
14
15namespace GrDirectContexts {
17 GrContextOptions defaultOptions;
18 return MakeMetal(backendContext, defaultOptions);
19}
20
36} // namespace GrDirectContexts
const char * options
static sk_sp< GrContextThreadSafeProxy > Make(GrBackendApi, const GrContextOptions &)
static void SetGpu(const sk_sp< GrDirectContext > &ctx, std::unique_ptr< GrGpu > gpu)
static bool Init(const sk_sp< GrDirectContext > &ctx)
static sk_sp< GrDirectContext > Make(GrBackendApi backend, const GrContextOptions &options, sk_sp< GrContextThreadSafeProxy > proxy)
static std::unique_ptr< GrGpu > MakeGpu(const GrMtlBackendContext &, const GrContextOptions &, GrDirectContext *)
T * get() const
Definition SkRefCnt.h:303
SK_API sk_sp< GrDirectContext > MakeMetal(const GrMtlBackendContext &, const GrContextOptions &)