#include "gpu/command_buffer/service/shared_image/dawn_gl_texture_representation.h"
#include <dawn/native/OpenGLBackend.h>
#include "build/build_config.h"
#include "gpu/command_buffer/service/shared_image/shared_image_format_service_utils.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/config/gpu_finch_features.h"
namespace {
GLenum ToSharedImageAccessGLMode(wgpu::TextureUsage usage) { … }
}
namespace gpu {
DawnGLTextureRepresentation::DawnGLTextureRepresentation(
std::unique_ptr<GLTextureImageRepresentationBase> gl_representation,
SharedImageManager* manager,
SharedImageBacking* backing,
MemoryTypeTracker* tracker,
wgpu::Device device)
: … { … }
DawnGLTextureRepresentation::~DawnGLTextureRepresentation() { … }
wgpu::Texture DawnGLTextureRepresentation::BeginAccess(
wgpu::TextureUsage usage,
wgpu::TextureUsage internal_usage) { … }
void DawnGLTextureRepresentation::EndAccess() { … }
}