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 Review URL: https://codereview.chromium.org/408153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284916 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment