#include "src/gpu/ganesh/gl/GrGLTexture.h"
#include "include/core/SkString.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "include/gpu/ganesh/gl/GrGLFunctions.h"
#include "include/gpu/ganesh/gl/GrGLInterface.h"
#include "include/private/base/SkAssert.h"
#include "src/core/SkTraceEvent.h"
#include "src/gpu/ganesh/GrSurface.h"
#include "src/gpu/ganesh/GrTexture.h"
#include "src/gpu/ganesh/gl/GrGLBackendSurfacePriv.h"
#include "src/gpu/ganesh/gl/GrGLCaps.h"
#include "src/gpu/ganesh/gl/GrGLDefines.h"
#include "src/gpu/ganesh/gl/GrGLGpu.h"
#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include <cstddef>
#include <cstdint>
#include <functional>
#include <string>
#include <utility>
#define GPUGL …
#define GL_CALL(X) …
GrTextureType GrGLTexture::TextureTypeFromTarget(GrGLenum target) { … }
static inline GrGLenum target_from_texture_type(GrTextureType type) { … }
GrGLTexture::GrGLTexture(GrGLGpu* gpu,
skgpu::Budgeted budgeted,
const Desc& desc,
GrMipmapStatus mipmapStatus,
std::string_view label)
: … { … }
GrGLTexture::GrGLTexture(GrGLGpu* gpu, const Desc& desc, GrMipmapStatus mipmapStatus,
sk_sp<GrGLTextureParameters> parameters, GrWrapCacheable cacheable,
GrIOType ioType, std::string_view label)
: … { … }
GrGLTexture::GrGLTexture(GrGLGpu* gpu,
const Desc& desc,
sk_sp<GrGLTextureParameters> parameters,
GrMipmapStatus mipmapStatus,
std::string_view label)
: … { … }
void GrGLTexture::init(const Desc& desc) { … }
GrGLenum GrGLTexture::target() const { … }
void GrGLTexture::onRelease() { … }
void GrGLTexture::onAbandon() { … }
GrBackendTexture GrGLTexture::getBackendTexture() const { … }
GrBackendFormat GrGLTexture::backendFormat() const { … }
sk_sp<GrGLTexture> GrGLTexture::MakeWrapped(GrGLGpu* gpu,
GrMipmapStatus mipmapStatus,
const Desc& desc,
sk_sp<GrGLTextureParameters> parameters,
GrWrapCacheable cacheable,
GrIOType ioType,
std::string_view label) { … }
bool GrGLTexture::onStealBackendTexture(GrBackendTexture* backendTexture,
SkImages::BackendTextureReleaseProc* releaseProc) { … }
void GrGLTexture::onSetLabel() { … }
void GrGLTexture::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { … }