#include "include/gpu/ganesh/GrYUVABackendTextures.h"
#include "include/core/SkColor.h"
#include "include/core/SkSize.h"
#include "include/private/base/SkDebug.h"
#include "src/core/SkYUVAInfoLocation.h"
#include <algorithm>
#include <cstdint>
static int num_channels(const GrBackendFormat& format) { … }
GrYUVABackendTextureInfo::GrYUVABackendTextureInfo(const SkYUVAInfo& yuvaInfo,
const GrBackendFormat formats[kMaxPlanes],
skgpu::Mipmapped mipmapped,
GrSurfaceOrigin origin)
: … { … }
bool GrYUVABackendTextureInfo::operator==(const GrYUVABackendTextureInfo& that) const { … }
SkYUVAInfo::YUVALocations GrYUVABackendTextureInfo::toYUVALocations() const { … }
GrYUVABackendTextures::GrYUVABackendTextures(
const SkYUVAInfo& yuvaInfo,
const GrBackendTexture textures[SkYUVAInfo::kMaxPlanes],
GrSurfaceOrigin textureOrigin)
: … { … }
SkYUVAInfo::YUVALocations GrYUVABackendTextures::toYUVALocations() const { … }