title: WebView performs slowly when it is attached to WindowManager android
body: <p>I'm creating an app shows HTML5 video, for studying android programming, that uses Floating <code>WebView</code>.</p>
  
  <p>It performs very choppy even on device that has upgraded <code>WebView</code>.
  (I'm using lollipop-powered Nexus 5)</p>
  
  <p>While it is attached on Activity(not floating) it performs buttery smooth.
  Even if it is floating, it performs smoothly when any <code>WebView</code> is placed on Current Activity.
  But if there's no <code>WebView</code>s on current activity like launcher, it performs very slow and jittery.</p>
  
  <p>Here is part of code what I'm using:</p>
  
  <pre><code>    WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
      WebView = new WebView();
      WindowManager.LayoutParams paramsRL = new WindowManager.LayoutParams(
              800,
              450,
              WindowManager.LayoutParams.TYPE_PHONE,
              WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
              WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
              PixelFormat.TRANSLUCENT);
      paramsRL.gravity = Gravity.TOP | Gravity.LEFT;
  
      webView.setWebChromeClient(new WebChromeClient());
      webView.getSettings().setJavaScriptEnabled(true);
      webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
      webView.loadUrl("html5_video_page_URL_here");
      windowManager.addView(webView,paramsRL);
  </code></pre>
  
  <p>Is there any workaround to get around this problem?</p>
  
  <p><strong>EDIT</strong>
  Added a video explains this behavior: <a href="http://youtu.be/BPDxzRRO1N8" rel="nofollow">http://youtu.be/BPDxzRRO1N8</a>
  while attached to an activity, it performs buttery smooth: <a href="http://youtu.be/aQcJRPCZWYs" rel="nofollow">http://youtu.be/aQcJRPCZWYs</a>
  on Kitkat, at least Samsung Galaxy's, it behaves buttery smooth: <a href="http://youtu.be/7Dw0tJ67eJw" rel="nofollow">http://youtu.be/7Dw0tJ67eJw</a> </p>
  
  <p>I've also filed a bug at
  <a href="https://code.google.com/p/chromium/issues/detail?id=460440" rel="nofollow">https://code.google.com/p/chromium/issues/detail?id=460440</a></p>