49 size_t bytesPerBlock()
const override {
53 int stencilBits()
const override {
57 uint32_t channelMask()
const override {
68 return fGLFormat == otherGL->fGLFormat;
73 std::string toString()
const override {
74#if defined(SK_DEBUG) || defined(GR_TEST_UTILS)
75 return GrGLFormatToStr(fGLFormat);
132 return data->asEnum();
142void GrGLBackendTextureData::copyTo(AnyTextureData& textureData)
const {
146bool GrGLBackendTextureData::isProtected()
const {
return fGLInfo.
isProtected(); }
151 return fGLInfo.
info() == otherGL->fGLInfo.info();
159 return fGLInfo.
info().
fID == otherGL->fGLInfo.info().fID;
185 std::string_view label) {
204 std::string_view label) {
220 *outInfo =
data->info().info();
228 data->info().parameters()->invalidate();
244 bool isProtected()
const override {
return fGLInfo.
isProtected(); }
249 return fGLInfo == otherGL->fGLInfo;
291 *outInfo =
data->info();
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static const GrGLBackendFormatData * get_and_cast_data(const GrBackendFormat &format)
static GrTextureType gl_target_to_gr_target(GrGLenum target)
#define GR_GL_TEXTURE_NONE
#define GR_GL_TEXTURE_RECTANGLE
#define GR_GL_TEXTURE_EXTERNAL
static constexpr size_t GrGLFormatBytesPerBlock(GrGLFormat format)
static constexpr int GrGLFormatStencilBits(GrGLFormat format)
static constexpr GrGLFormat GrGLFormatFromGLEnum(GrGLenum glFormat)
static constexpr GrColorFormatDesc GrGLFormatDesc(GrGLFormat format)
static constexpr uint32_t GrGLFormatChannels(GrGLFormat format)
GrBackendRenderTarget::AnyRenderTargetData AnyRenderTargetData
GrBackendApi backend() const
static GrBackendRenderTarget MakeGrBackendRenderTarget(int width, int height, int sampleCnt, int stencilBits, GrBackendApi backend, bool framebufferOnly, const RenderTargetData &data)
static GrBackendTexture MakeGrBackendTexture(int width, int height, std::string_view label, skgpu::Mipmapped mipped, GrBackendApi backend, GrTextureType texture, const TextureData &data)
static GrBackendFormat MakeGrBackendFormat(GrTextureType textureType, GrBackendApi api, const FormatData &data)
static const GrBackendFormatData * GetBackendData(const GrBackendFormat &format)
GrBackendApi backend() const
GrGLBackendRenderTargetData(GrGLFramebufferInfo info)
GrGLFramebufferInfo info() const
GrGLBackendTextureData(const GrGLTextureInfo &info, sk_sp< GrGLTextureParameters > params)
const GrGLTextureInfo & info() const
sk_sp< GrGLTextureParameters > refParameters() const
const EmbeddedViewParams * params
uint32_t uint32_t * format
static float max(float r, float g, float b)
SK_API GrBackendRenderTarget MakeGL(int width, int height, int sampleCnt, int stencilBits, const GrGLFramebufferInfo &glInfo)
SK_API bool GetGLFramebufferInfo(const GrBackendRenderTarget &, GrGLFramebufferInfo *)
SK_API GrBackendTexture MakeGL(int width, int height, skgpu::Mipmapped, const GrGLTextureInfo &glInfo, std::string_view label={})
SK_API void GLTextureParametersModified(GrBackendTexture *)
SK_API bool GetGLTextureInfo(const GrBackendTexture &, GrGLTextureInfo *)
std::shared_ptr< const fml::Mapping > data