bool EGLImageTextureClient::ToSurfaceDescriptor(SurfaceDescriptor& aOutDescriptor) { MOZ_ASSERT(IsValid()); MOZ_ASSERT(IsAllocated()); aOutDescriptor = EGLImageDescriptor((uintptr_t)mImage, mSize); return true; }
bool EGLImageTextureData::Serialize(SurfaceDescriptor& aOutDescriptor) { const bool hasAlpha = true; aOutDescriptor = EGLImageDescriptor((uintptr_t)mImage->GetImage(), (uintptr_t)mImage->GetSync(), mImage->GetSize(), hasAlpha); return true; }
bool EGLImageTextureClient::ToSurfaceDescriptor(SurfaceDescriptor& aOutDescriptor) { MOZ_ASSERT(IsValid()); MOZ_ASSERT(IsAllocated()); const EGLImageImage::Data* data = mImage->GetData(); aOutDescriptor = EGLImageDescriptor((uintptr_t)data->mImage, (uintptr_t)data->mSync, mSize); return true; }