コード例 #1
0
 /** Implementation of LayerView.Listener */
 public void compositionResumeRequested(int width, int height) {
   // Asking Gecko to resume the compositor takes too long (see
   // https://bugzilla.mozilla.org/show_bug.cgi?id=735230#c23), so we
   // resume the compositor directly. We still need to inform Gecko about
   // the compositor resuming, so that Gecko knows that it can now draw.
   if (mCompositorCreated) {
     GeckoAppShell.scheduleResumeComposition(width, height);
     GeckoAppShell.sendEventToGecko(GeckoEvent.createCompositorResumeEvent());
   }
 }