Currently cc::Surface lifetime is controlled via the SurfaceSequence mechanism. This should be replaced by a mechanism that is better suited for the multi-process architecture of mustash. fsamuel@ suggested a ref counting based lifetime management mechanism.
+samans@
Saman is working on a SurfaceEmbedding object used in clients.
SurfaceEmbedding ~= SurfaceInfo (surface ID + frame size + device scale factor) + SurfaceReference or SurfaceSequence (which is an implementation detail). The intent is SurfaceLayer just cares about SurfaceEmbeddings and the system they use under the hood is abstracted away from there.
This is implemented in mus+ash now. There is still the matter of getting it work with non-mus+ash Chrome but that is being tracked in crbug.com/676384 .
Comment 1 by kylec...@chromium.org
, Oct 25 2016