Description[Remoting Android] Fix OnPixelTransformationChanged Flakiness
In very rare circumstance (<5% connection attempt)
GlRenderer::OnPixelTransformationChanged is called when SurfaceCreated has not
been called, which crashes the app since |canvas_| has not been set. This CL
adds check for |canvas_| to prevent crashing. For now we don't know in that
case whether the transformation was set before SurfaceCreated or the surface
had actually been created before the surface callback was registered. If former
is true then this CL will fix the problem since SurfaceCreated will implicitly
cause TransformationChanged. If latter is true then nothing will be drawn on
the view although the app doesn't crash, and we will need to investigate why
this can ever happen.
BUG=644924
Committed: https://crrev.com/ac2e73718fbdfbb5cb5458a1271339174deec8ef
Cr-Commit-Position: refs/heads/master@{#417463}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Reviewer's Feedback #Messages
Total messages: 14 (6 generated)
|