chromium/gpu/command_buffer/service/shared_image/dawn_fallback_image_representation.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_DAWN_FALLBACK_IMAGE_REPRESENTATION_H_
#define GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_DAWN_FALLBACK_IMAGE_REPRESENTATION_H_

#include "gpu/command_buffer/service/shared_image/shared_image_representation.h"

namespace gpu {
// Wraps a |SharedImageBacking| and exposes it as a wgpu::Texture by performing
// CPU readbacks/uploads.
// Note: the backing must implement UploadFromMemory & ReadbackToMemory.
class GPU_GLES2_EXPORT DawnFallbackImageRepresentation
    : public DawnImageRepresentation {};
}  // namespace gpu

#endif  // GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_DAWN_FALLBACK_IMAGE_REPRESENTATION_H_