Move tile-free-software render surface disabling to UpdateDrawProperties.
Currently when DrawProperties decides a subtree needs a render surface,
Android WebView software mode just drops it at CalculateRenderPasses
time and draws nothing. If we instead suppress the render surface
decision at an earlier stage, we're more likely to get a halfway
reasonable result.
The motivating example was a page setting preserve-3d where the render
surface didn't affect the output result anyway.
New test LayerTreeHostCommonTest.CanRenderToSeparateSurface.
NOTRY=true
BUG=297299
Review URL: https://codereview.chromium.org/24280009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225637 0039d316-1c4b-4281-b951-d872f2087c98
6 files changed