8#ifndef GrMtlCommandBuffer_DEFINED
9#define GrMtlCommandBuffer_DEFINED
11#import <Metal/Metal.h>
68 fTrackedGrSurfaces.push_back(std::move(
surface));
78 return fCmdBuffer.status == MTLCommandBufferStatusCompleted ||
79 fCmdBuffer.status == MTLCommandBufferStatusError;
84 if (@available(macOS 10.13, iOS 11.0, tvOS 11.0, *)) {
90 if (@available(macOS 10.13, iOS 11.0, tvOS 11.0, *)) {
97 : fCmdBuffer(cmdBuffer)
98 , fActiveBlitCommandEncoder(nil)
99 , fActiveRenderCommandEncoder(nil)
100 , fPreviousRenderPassDescriptor(nil)
103 void endAllEncoding();
105 static const int kInitialTrackedResourcesCount = 32;
112 id<MTLCommandBuffer> fCmdBuffer;
113 id<MTLBlitCommandEncoder> fActiveBlitCommandEncoder;
114 std::unique_ptr<GrMtlRenderCommandEncoder> fActiveRenderCommandEncoder;
115 MTLRenderPassDescriptor* fPreviousRenderPassDescriptor;
static SkString resource(SkPDFResourceType type, int index)
GrMtlRenderCommandEncoder * getRenderCommandEncoder(MTLRenderPassDescriptor *, const GrMtlPipelineState *, GrMtlOpsRenderPass *opsRenderPass)
void addResource(const sk_sp< const GrManagedResource > &resource)
void addGrBuffer(sk_sp< const GrBuffer > buffer)
void pushDebugGroup(NSString *string)
void addGrSurface(sk_sp< const GrSurface > surface)
void waitUntilCompleted()
void addCompletedHandler(MTLCommandBufferHandler block)
id< MTLBlitCommandEncoder > getBlitCommandEncoder()
~GrMtlCommandBuffer() override
void encodeWaitForEvent(sk_sp< GrMtlEvent >, uint64_t value)
static sk_sp< GrMtlCommandBuffer > Make(id< MTLCommandQueue > queue)
bool commit(bool waitUntilCompleted)
void addFinishedCallback(sk_sp< skgpu::RefCntedCallback > callback)
void encodeSignalEvent(sk_sp< GrMtlEvent >, uint64_t value)
void callFinishedCallbacks()
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer