#include "src/gpu/ganesh/GrTextureProxy.h"
#include "src/gpu/ganesh/GrTextureProxyPriv.h"
#include "include/core/SkSize.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/ganesh/GrBackendSurface.h"
#include "include/gpu/ganesh/GrDirectContext.h"
#include "include/gpu/ganesh/GrTypes.h"
#include "src/gpu/SkBackingFit.h"
#include "src/gpu/ganesh/GrDeferredProxyUploader.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpuResourcePriv.h"
#include "src/gpu/ganesh/GrProxyProvider.h"
#include "src/gpu/ganesh/GrSurface.h"
#include "src/gpu/ganesh/GrSurfaceProxyPriv.h"
#include "src/gpu/ganesh/GrTexture.h"
#include <utility>
class GrOpFlushState;
GrTextureProxy::GrTextureProxy(const GrBackendFormat& format,
SkISize dimensions,
skgpu::Mipmapped mipmapped,
GrMipmapStatus mipmapStatus,
SkBackingFit fit,
skgpu::Budgeted budgeted,
GrProtected isProtected,
GrInternalSurfaceFlags surfaceFlags,
UseAllocator useAllocator,
GrDDLProvider creatingProvider,
std::string_view label)
: … { … }
GrTextureProxy::GrTextureProxy(LazyInstantiateCallback&& callback,
const GrBackendFormat& format,
SkISize dimensions,
skgpu::Mipmapped mipmapped,
GrMipmapStatus mipmapStatus,
SkBackingFit fit,
skgpu::Budgeted budgeted,
GrProtected isProtected,
GrInternalSurfaceFlags surfaceFlags,
UseAllocator useAllocator,
GrDDLProvider creatingProvider,
std::string_view label)
: … { … }
GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf,
UseAllocator useAllocator,
GrDDLProvider creatingProvider)
: … { … }
GrTextureProxy::~GrTextureProxy() { … }
bool GrTextureProxy::instantiate(GrResourceProvider* resourceProvider) { … }
sk_sp<GrSurface> GrTextureProxy::createSurface(GrResourceProvider* resourceProvider) const { … }
void GrTextureProxyPriv::setDeferredUploader(std::unique_ptr<GrDeferredProxyUploader> uploader) { … }
void GrTextureProxyPriv::scheduleUpload(GrOpFlushState* flushState) { … }
void GrTextureProxyPriv::resetDeferredUploader() { … }
skgpu::Mipmapped GrTextureProxy::mipmapped() const { … }
GrTextureType GrTextureProxy::textureType() const { … }
size_t GrTextureProxy::onUninstantiatedGpuMemorySize() const { … }
bool GrTextureProxy::ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first,
const GrSurfaceProxy* second) { … }
void GrTextureProxy::setUniqueKey(GrProxyProvider* proxyProvider, const skgpu::UniqueKey& key) { … }
void GrTextureProxy::clearUniqueKey() { … }
GrSurfaceProxy::LazySurfaceDesc GrTextureProxy::callbackDesc() const { … }
#ifdef SK_DEBUG
void GrTextureProxy::onValidateSurface(const GrSurface* surface) { … }
#endif