Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrContextHolder.mm
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
5
7
8#if defined(SK_GANESH)
9
14
15#ifdef SK_GL
17 return GrContextHolder(GrDirectContexts::MakeGL(nullptr, GrContextOptions()).release());
18}
19#endif
20
22
23#else
24
26
27#endif
GrContextHolder SkMakeGLContext()
std::unique_ptr< GrDirectContext, GrContextRelease > GrContextHolder
#define SkDEBUGFAIL(message)
Definition SkAssert.h:118
static void SkSafeUnref(T *obj)
Definition SkRefCnt.h:149
SK_API sk_sp< GrDirectContext > MakeGL()
void operator()(GrDirectContext *)