#include "src/gpu/graphite/Texture.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/MutableTextureState.h"
#include "src/gpu/RefCntedCallback.h"
#include "src/gpu/graphite/Caps.h"
#include "src/gpu/graphite/SharedContext.h"
#include "src/gpu/graphite/TextureUtils.h"
namespace skgpu::graphite {
Texture::Texture(const SharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info,
sk_sp<MutableTextureState> mutableState,
Ownership ownership,
skgpu::Budgeted budgeted)
: … { … }
Texture::~Texture() = default;
void Texture::setReleaseCallback(sk_sp<RefCntedCallback> releaseCallback) { … }
void Texture::invokeReleaseProc() { … }
MutableTextureState* Texture::mutableState() const { … }
void Texture::onDumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump,
const char* dumpName) const { … }
}