The outer layer is called the epicardium, or visceral pericardium since it is also the inner wall of the pericardium.
From the en.wikipedia.org
The pleural and pericardial cavities are exaggerated since normally there is no space between parietal and visceral pleura and between pericardium and heart.