Flutter Engine
The Flutter Engine
third_party
skia
include
gpu
ganesh
mtl
GrMtlBackendSemaphore.h
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
*
7
*/
8
#ifndef GrMtlBackendSemaphore_DEFINED
9
#define GrMtlBackendSemaphore_DEFINED
10
11
#include "
include/gpu/GrBackendSemaphore.h
"
12
#include "
include/gpu/ganesh/mtl/GrMtlTypes.h
"
13
#include "
include/private/base/SkAPI.h
"
14
15
namespace
GrBackendSemaphores
{
16
// It is the creator's responsibility to ref the MTLEvent passed in here, via __bridge_retained.
17
// The other end will wrap this BackendSemaphore and take the ref, via __bridge_transfer.
18
SK_API
GrBackendSemaphore
MakeMtl
(
GrMTLHandle
event
, uint64_t
value
);
19
SK_API
GrMTLHandle
GetMtlHandle
(
const
GrBackendSemaphore
&);
20
SK_API
uint64_t
GetMtlValue
(
const
GrBackendSemaphore
&);
21
}
// namespace GrBackendSemaphores
22
23
#endif
GrBackendSemaphore.h
GrMtlTypes.h
GrMTLHandle
const void * GrMTLHandle
Definition:
GrMtlTypes.h:20
SkAPI.h
SK_API
#define SK_API
Definition:
SkAPI.h:35
GrBackendSemaphore
Definition:
GrBackendSemaphore.h:26
event
FlKeyEvent * event
Definition:
fl_key_channel_responder.cc:118
value
uint8_t value
Definition:
fl_standard_message_codec.cc:36
GrBackendSemaphores
Definition:
GrMtlBackendSemaphore.h:15
GrBackendSemaphores::GetMtlValue
SK_API uint64_t GetMtlValue(const GrBackendSemaphore &)
Definition:
GrMtlBackendSemaphore.mm:56
GrBackendSemaphores::GetMtlHandle
SK_API GrMTLHandle GetMtlHandle(const GrBackendSemaphore &)
Definition:
GrMtlBackendSemaphore.mm:49
GrBackendSemaphores::MakeMtl
SK_API GrBackendSemaphore MakeMtl(GrMTLHandle event, uint64_t value)
Definition:
GrMtlBackendSemaphore.mm:44
Generated on Sun Jun 23 2024 21:56:02 for Flutter Engine by
1.9.4