17 , fResourceState(
state) {}
21 fResourceState =
nullptr;
22 delete fTextureResourceInfo;
23 fTextureResourceInfo =
nullptr;
30 fResourceState =
SkSafeRef(that.fResourceState);
39 fResourceState->
setResourceState(
static_cast<D3D12_RESOURCE_STATES
>(resourceState));
49 *fTextureResourceInfo,
58#if defined(GR_TEST_UTILS)
66 return cpyInfoThis == cpyInfoThat && fResourceState == that.fResourceState;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
int GrD3DResourceStateEnum
GrD3DSurfaceInfo GrD3DTextureResourceSpecToSurfaceInfo(const GrD3DTextureResourceSpec &d3dSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
static void SkSafeUnref(T *obj)
static T * SkSafeRef(T *obj)
sk_sp< T > sk_ref_sp(T *obj)
void setResourceState(D3D12_RESOURCE_STATES state)
D3D12_RESOURCE_STATES getResourceState() const
bool operator==(C p1, const scoped_nsprotocol< C > &p2)
GrD3DBackendSurfaceInfo(const GrD3DTextureResourceInfo &info, GrD3DResourceState *state)
void assign(const GrD3DBackendSurfaceInfo &, bool isValid)
void setResourceState(GrD3DResourceStateEnum state)
GrD3DTextureResourceInfo snapTextureResourceInfo() const
sk_sp< GrD3DResourceState > getGrD3DResourceState() const
D3D12_RESOURCE_STATES fResourceState
skgpu::Protected fProtected
GrD3DSurfaceInfo getSurfaceInfo(uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected) const
GrD3DTextureResourceSpecHolder(const GrD3DSurfaceInfo &)