8#ifndef GrMtlDepthStencil_DEFINED
9#define GrMtlDepthStencil_DEFINED
11#import <Metal/Metal.h>
28 id<MTLDepthStencilState>
mtlDepthStencil()
const {
return fMtlDepthStencilState; }
57#ifdef SK_TRACE_MANAGED_RESOURCES
60 void dumpInfo()
const override {
61 SkDebugf(
"GrMtlDepthStencil: %p (%ld refs)\n", fMtlDepthStencilState,
62 CFGetRetainCount((CFTypeRef)fMtlDepthStencilState));
67 fMtlDepthStencilState = nil;
72 : fMtlDepthStencilState(mtlDepthStencilState)
75 mutable id<MTLDepthStencilState> fMtlDepthStencilState;
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
void freeGPUData() const override
static Key GenerateKey(const GrStencilSettings &, GrSurfaceOrigin)
static uint32_t Hash(const Key &key)
static const Key & GetKey(const GrMtlDepthStencil &depthStencil)
static GrMtlDepthStencil * Create(const GrMtlGpu *, const GrStencilSettings &, GrSurfaceOrigin)
id< MTLDepthStencilState > mtlDepthStencil() const
~GrMtlDepthStencil() override
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
bool operator==(const Key &that) const