title: Video Lag and FPS drop on Android Lollipop on touching screen
body: <p>I am using MediaCodec to play 1080p@60fps video. This is on freescale SabreSD platform with Android Lollipop 5.1.</p>
  
  <p>Initially because of BufferQueue Synchronous Mode, the FPS was way below 60.I could now manage to play at 70FPS by changing the BufferQueue to Asynchronous as in JB.</p>
  
  <p>Now the next challenge I am facing is the video lags and FPS drops drastically to 40 when I start interacting with the screen (pulling down notification bar , pressing volume button etc).  </p>
  
  <p>So I ran rafika MultiSurfaceActivity and Record GL, I can see all the test play smoothly when no screen is touched or disturbed, but as soon as I start scrolling the notification bar from top and continue that for long time, the fps gets reduced to 35-40FPS.</p>
  
  <p>I have confirmed the same test on Kitkat 4.4.2 and JB 4.2.2 and they seems to work fine.</p>
  
  <p>Same behaviour when playing MP4 from Gallery. The video gets stuck and lags a lot when we start playing with Notification bar</p>
  
  <p>Can anyone explain what has change from Kitkat to Lollipop which can cause this issue (VSync, Triple Buffering ?). </p>