8#ifndef GrBackendSurface_DEFINED
9#define GrBackendSurface_DEFINED
27class MutableTextureState;
35#if defined(SK_DEBUG) || defined(GR_TEST_UTILS)
60 bool isStencilFormat =
false);
72 uint32_t channelMask()
const;
81 bool asDxgiFormat(DXGI_FORMAT*)
const;
91 bool isMockStencilFormat()
const;
101#if defined(SK_DEBUG) || defined(GR_TEST_UTILS)
108 inline constexpr static size_t kMaxSubclassSize = 80;
116 template <
typename FormatData>
118 : fBackend(api), fValid(
true), fTextureType(textureType) {
119 fFormatData.emplace<FormatData>(formatData);
129 bool validateMock()
const;
138 DXGI_FORMAT fDxgiFormat;
158 std::string_view label = {});
165 std::string_view label = {});
174 int width()
const {
return fWidth; }
176 std::string_view
getLabel()
const {
return fLabel; }
208 bool isProtected()
const;
216#if defined(GR_TEST_UTILS)
223 inline constexpr static size_t kMaxSubclassSize = 176;
231 template <
typename TextureData>
234 std::string_view label,
238 const TextureData& textureData)
246 fTextureData.emplace<TextureData>(textureData);
259 std::string_view label = {});
269 const std::string fLabel;
273 AnyTextureData fTextureData;
306 int width()
const {
return fWidth; }
338 bool isProtected()
const;
343#if defined(GR_TEST_UTILS)
351 inline constexpr static size_t kMaxSubclassSize = 176;
359 template <
typename RenderTargetData>
365 bool framebufferOnly,
366 const RenderTargetData& rtData)
368 , fFramebufferOnly(framebufferOnly)
371 , fSampleCnt(sampleCnt)
372 , fStencilBits(stencilBits)
374 fRTData.emplace<RenderTargetData>(rtData);
394 bool fFramebufferOnly =
false;
int GrD3DResourceStateEnum
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
friend class GrBackendRenderTarget
bool isFramebufferOnly() const
GrMockRenderTargetInfo fMockInfo
GrBackendApi backend() const
SkISize dimensions() const
friend class GrBackendTexture
SkISize dimensions() const
skgpu::Mipmapped mipmapped() const
std::string_view getLabel() const
GrTextureType textureType() const
GrMockTextureInfo fMockInfo
GrBackendApi backend() const
uint32_t uint32_t * format
bool operator==(C p1, const scoped_nsprotocol< C > &p2)