8#ifndef GrSurfaceProxyView_DEFINED
9#define GrSurfaceProxyView_DEFINED
48 explicit operator bool()
const {
return SkToBool(fProxy.
get()); }
90 std::string_view label);
97 std::string_view label);
const TextureProxy * fProxy
@ kTopLeft_GrSurfaceOrigin
static constexpr bool SkToBool(const T &x)
skgpu::Swizzle swizzle() const
std::true_type sk_is_trivially_relocatable
skgpu::Mipmapped mipmapped() const
void concatSwizzle(skgpu::Swizzle swizzle)
GrSurfaceProxyView(sk_sp< GrSurfaceProxy > proxy)
GrTextureProxy * asTextureProxy() const
sk_sp< GrSurfaceProxy > detachProxy()
SkISize dimensions() const
sk_sp< GrTextureProxy > asTextureProxyRef() const
GrSurfaceProxyView(const GrSurfaceProxyView &)=default
GrSurfaceProxyView(sk_sp< GrSurfaceProxy > proxy, GrSurfaceOrigin origin, skgpu::Swizzle swizzle)
GrSurfaceProxyView(GrSurfaceProxyView &&view)=default
GrSurfaceProxyView makeSwizzle(skgpu::Swizzle swizzle) const &
GrSurfaceOrigin origin() const
GrSurfaceProxy * proxy() const
GrRenderTargetProxy * asRenderTargetProxy() const
GrSurfaceProxyView & operator=(const GrSurfaceProxyView &)=default
sk_sp< GrSurfaceProxy > refProxy() const
static GrSurfaceProxyView Copy(GrRecordingContext *context, GrSurfaceProxyView src, skgpu::Mipmapped mipmapped, SkIRect srcRect, SkBackingFit fit, skgpu::Budgeted budgeted, std::string_view label)
sk_sp< GrRenderTargetProxy > asRenderTargetProxyRef() const
GrSurfaceProxyView()=default
bool operator==(const GrSurfaceProxyView &view) const
GrSurfaceProxyView & operator=(GrSurfaceProxyView &&view)=default
bool operator!=(const GrSurfaceProxyView &other) const
SkISize dimensions() const