chromium/third_party/skia/src/gpu/graphite/dawn/DawnBackendTexture.cpp

/*
 * Copyright 2024 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "include/core/SkString.h"
#include "include/gpu/graphite/dawn/DawnTypes.h"
#include "src/gpu/graphite/BackendTexturePriv.h"
#include "src/gpu/graphite/dawn/DawnGraphiteTypesPriv.h"
#include "src/gpu/graphite/dawn/DawnUtilsPriv.h"

#include "webgpu/webgpu_cpp.h"  // NO_G3_REWRITE

#include <cstdint>

namespace skgpu::graphite {

class DawnBackendTextureData final : public BackendTextureData {};

static const DawnBackendTextureData* get_and_cast_data(const BackendTexture& tex) {}

// When we only have a WGPUTextureView we can't actually take advantage of these TextureUsage bits
// because they require having the WGPUTexture.
static DawnTextureInfo strip_copy_usage(const DawnTextureInfo& info) {}

namespace BackendTextures {
BackendTexture MakeDawn(WGPUTexture texture) {}

BackendTexture MakeDawn(SkISize planeDimensions, const DawnTextureInfo& info, WGPUTexture texture) {}

BackendTexture MakeDawn(SkISize dimensions,
                        const DawnTextureInfo& info,
                        WGPUTextureView textureView) {}

WGPUTexture GetDawnTexturePtr(const BackendTexture& tex) {}

WGPUTextureView GetDawnTextureViewPtr(const BackendTexture& tex) {}

}  // namespace BackendTextures

}  // namespace skgpu::graphite