Descriptionozone: Add OzoneSurface object that is owned by compositor, GLSurface
There is currently no way to clean up any objects created by ozone platforms
during surface initialization (i.e., RealizeAcceleratedWidget).
Therefore, it is not possible to implement a platform that does
nontrivial initialization in RealizeAcceleratedWidget without
leaking resources.
This adds an object representing the surface that is owned by the
GL surface or software output device. Any platform objects that
need to be destroyed at that time should be owned by this object.
There's no RealizeAcceleratedWidget any longer; this is replaced
by creation of the SurfaceOzone object.
TEST=ui_unittests, content_shell --ozone-platform={file,dri}
BUG=353788
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260580
Patch Set 1 #Patch Set 2 : add missing InitializeCanvas to FileSurface #
Total comments: 20
Patch Set 3 : grammar, clarify creation of surface by gpu #Patch Set 4 : update canvas API #Patch Set 5 : rebase & update some comments #
Total comments: 10
Patch Set 6 : s/SwapCanvas/PresentCanvas #
Total comments: 9
Patch Set 7 : remove extra not reached comments #Patch Set 8 : purify SurfaceOzone, add impure SurfaceOzoneBase #Patch Set 9 : rebase #
Messages
Total messages: 34 (0 generated)
|