#include "src/gpu/graphite/dawn/DawnTexture.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/MutableTextureState.h"
#include "include/gpu/graphite/dawn/DawnTypes.h"
#include "src/core/SkMipmap.h"
#include "src/gpu/graphite/Log.h"
#include "src/gpu/graphite/TextureUtils.h"
#include "src/gpu/graphite/dawn/DawnCaps.h"
#include "src/gpu/graphite/dawn/DawnGraphiteTypesPriv.h"
#include "src/gpu/graphite/dawn/DawnGraphiteUtilsPriv.h"
#include "src/gpu/graphite/dawn/DawnSharedContext.h"
namespace skgpu::graphite {
wgpu::Texture DawnTexture::MakeDawnTexture(const DawnSharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info) { … }
DawnTexture::DawnTexture(const DawnSharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info,
wgpu::Texture texture,
wgpu::TextureView sampleTextureView,
wgpu::TextureView renderTextureView,
Ownership ownership,
skgpu::Budgeted budgeted)
: … { … }
std::pair<wgpu::TextureView, wgpu::TextureView> DawnTexture::CreateTextureViews(
const wgpu::Texture& texture, const TextureInfo& info) { … }
sk_sp<Texture> DawnTexture::Make(const DawnSharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info,
skgpu::Budgeted budgeted) { … }
sk_sp<Texture> DawnTexture::MakeWrapped(const DawnSharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info,
wgpu::Texture texture) { … }
sk_sp<Texture> DawnTexture::MakeWrapped(const DawnSharedContext* sharedContext,
SkISize dimensions,
const TextureInfo& info,
const wgpu::TextureView& textureView) { … }
void DawnTexture::freeGpuData() { … }
void DawnTexture::setBackendLabel(char const* label) { … }
}