#include "components/viz/service/display/external_use_client.h"
#include "base/check.h"
#include "base/notreached.h"
#include "third_party/skia/include/core/SkColorSpace.h"
namespace viz {
ExternalUseClient::ImageContext::ImageContext(
const gpu::MailboxHolder& mailbox_holder,
const gfx::Size& size,
SharedImageFormat format,
const std::optional<gpu::VulkanYCbCrInfo>& ycbcr_info,
sk_sp<SkColorSpace> color_space)
: … { … }
ExternalUseClient::ImageContext::~ImageContext() = default;
sk_sp<SkColorSpace> ExternalUseClient::ImageContext::color_space() const { … }
void ExternalUseClient::ImageContext::OnContextLost() { … }
void ExternalUseClient::ImageContext::SetImage(
sk_sp<SkImage> image,
std::vector<GrBackendFormat> backend_formats) { … }
void ExternalUseClient::ImageContext::SetImage(
sk_sp<SkImage> image,
std::vector<skgpu::graphite::TextureInfo> texture_infos) { … }
}