#include "components/viz/common/resources/transferable_resource.h"
#include "components/viz/common/resources/returned_resource.h"
#include "gpu/command_buffer/client/client_shared_image.h"
namespace viz {
TransferableResource TransferableResource::MakeSoftwareSharedBitmap(
const SharedBitmapId& id,
const gpu::SyncToken& sync_token,
const gfx::Size& size,
SharedImageFormat format,
ResourceSource source) { … }
TransferableResource TransferableResource::MakeSoftwareSharedImage(
const scoped_refptr<gpu::ClientSharedImage>& client_shared_image,
const gpu::SyncToken& sync_token,
const gfx::Size& size,
SharedImageFormat format,
ResourceSource source) { … }
TransferableResource TransferableResource::MakeGpu(
const gpu::Mailbox& mailbox,
uint32_t texture_target,
const gpu::SyncToken& sync_token,
const gfx::Size& size,
SharedImageFormat format,
bool is_overlay_candidate,
ResourceSource source) { … }
TransferableResource TransferableResource::MakeGpu(
const scoped_refptr<gpu::ClientSharedImage>& client_shared_image,
uint32_t texture_target,
const gpu::SyncToken& sync_token,
const gfx::Size& size,
SharedImageFormat format,
bool is_overlay_candidate,
ResourceSource source) { … }
TransferableResource::TransferableResource() = default;
TransferableResource::~TransferableResource() = default;
TransferableResource::TransferableResource(const TransferableResource& other) =
default;
TransferableResource& TransferableResource::operator=(
const TransferableResource& other) = default;
ReturnedResource TransferableResource::ToReturnedResource() const { … }
std::vector<ReturnedResource> TransferableResource::ReturnResources(
const std::vector<TransferableResource>& input) { … }
bool TransferableResource::IsSoftwareSharedImage() const { … }
}