Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Issue 2322623003: [Remoting Android] Fix OnPixelTransformationChanged Flakiness (Closed)

Created:
4 years, 3 months ago by Yuwei
Modified:
4 years, 3 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M remoting/client/gl_renderer.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Yuwei
PTAL
4 years, 3 months ago (2016-09-07 22:55:41 UTC) #3
Yuwei
More inclined to the first explanation. Tried rotating the screen for hundreds of times and ...
4 years, 3 months ago (2016-09-07 23:13:31 UTC) #4
Yuwei
On 2016/09/07 23:13:31, Yuwei wrote: > More inclined to the first explanation. Tried rotating the ...
4 years, 3 months ago (2016-09-08 23:15:16 UTC) #5
Sergey Ulanov
lgtm https://codereview.chromium.org/2322623003/diff/1/remoting/client/gl_renderer.cc File remoting/client/gl_renderer.cc (right): https://codereview.chromium.org/2322623003/diff/1/remoting/client/gl_renderer.cc#newcode44 remoting/client/gl_renderer.cc:44: << "not ready."; nit: remove <<
4 years, 3 months ago (2016-09-08 23:21:04 UTC) #6
Yuwei
Thanks! https://codereview.chromium.org/2322623003/diff/1/remoting/client/gl_renderer.cc File remoting/client/gl_renderer.cc (right): https://codereview.chromium.org/2322623003/diff/1/remoting/client/gl_renderer.cc#newcode44 remoting/client/gl_renderer.cc:44: << "not ready."; On 2016/09/08 23:21:04, Sergey Ulanov ...
4 years, 3 months ago (2016-09-08 23:31:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322623003/20001
4 years, 3 months ago (2016-09-08 23:32:24 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-09 00:51:47 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 00:53:40 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ac2e73718fbdfbb5cb5458a1271339174deec8ef
Cr-Commit-Position: refs/heads/master@{#417463}

Powered by Google App Engine
This is Rietveld 408576698