Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
include
gpu
ganesh
vk
GrVkDirectContext.h
Go to the documentation of this file.
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 GrVkDirectContext_DEFINED
9
#define GrVkDirectContext_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/private/base/SkAPI.h
"
13
14
class
GrDirectContext
;
15
struct
GrContextOptions
;
16
struct
GrVkBackendContext
;
17
18
namespace
GrDirectContexts
{
19
/**
20
* The Vulkan context (VkQueue, VkDevice, VkInstance) must be kept alive until the returned
21
* GrDirectContext is destroyed. This also means that any objects created with this
22
* GrDirectContext (e.g. SkSurfaces, SkImages, etc.) must also be released as they may hold
23
* refs on the GrDirectContext. Once all these objects and the GrDirectContext are released,
24
* then it is safe to delete the vulkan objects.
25
*/
26
SK_API
sk_sp<GrDirectContext>
MakeVulkan
(
const
GrVkBackendContext
&,
const
GrContextOptions
&);
27
SK_API
sk_sp<GrDirectContext>
MakeVulkan
(
const
GrVkBackendContext
&);
28
}
29
30
#endif
SkAPI.h
SK_API
#define SK_API
Definition
SkAPI.h:35
SkRefCnt.h
GrDirectContext
Definition
GrDirectContext.h:60
sk_sp
Definition
SkRefCnt.h:220
GrDirectContexts
Definition
GrGLDirectContext.h:18
GrDirectContexts::MakeVulkan
SK_API sk_sp< GrDirectContext > MakeVulkan(const GrVkBackendContext &, const GrContextOptions &)
Definition
GrVkDirectContext.cpp:24
GrContextOptions
Definition
GrContextOptions.h:23
GrVkBackendContext
Definition
GrVkBackendContext.h:45
Generated on Fri Apr 26 2024 06:16:11 for Flutter Engine by
1.9.8