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

Issue 408153002: Mac: Fix janky YouTube animations (Closed)

Created:
6 years, 5 months ago by ccameron
Modified:
6 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mac: Fix janky YouTube animations Based on experimentation, it appears that calling setNeedsDisplay or displayIfNeeded on a CAOpenGLLayer which has the isAsynchronous property set, will result in the animation getting screwed up. In particular, calls to canDrawInCGLContext stop occurring. This was working in M35 and M36 because, entirely accidentally, we were calling setAsynchronous:NO before most instances of setNeedsDisplay and displayIfNeeded. In r272469, these calls were removed, and resulting in the janky animation. Add calls to setAsynchronous:NO before all instances of calling displayIfNeeded, and almost all instances of calling setNeedsDisplay. BUG=395827 TEST=manual, automated tests in progress Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284916

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -15 lines) Patch
M content/browser/compositor/browser_compositor_view_private_mac.mm View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_layer_mac.h View 2 chunks +14 lines, -3 lines 1 comment Download
M content/browser/renderer_host/compositing_iosurface_layer_mac.mm View 4 chunks +32 lines, -3 lines 2 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 3 chunks +4 lines, -5 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
ccameron
This is the issue I was mentioning earlier. It look like toggling isAsynchronous for a ...
6 years, 5 months ago (2014-07-22 06:40:42 UTC) #1
Ken Russell (switch to Gerrit)
LGTM if this has been tested; let's work on getting an automated test in place ...
6 years, 5 months ago (2014-07-22 19:52:05 UTC) #2
ccameron
Thanks! Checking CQ bit, but this won't resolve until lkgr gets past r284856 (crossing fingers ...
6 years, 5 months ago (2014-07-23 07:50:34 UTC) #3
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 5 months ago (2014-07-23 07:50:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/408153002/1
6 years, 5 months ago (2014-07-23 07:51:46 UTC) #5
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 14:18:18 UTC) #6
Message was sent while issue was closed.
Change committed as 284916

Powered by Google App Engine
This is Rietveld 408576698