Bug 781542 - Don't require a layer invalidation for Flash video on Android r=blassey
authorJames Willcox <jwillcox@mozilla.com>
Thu, 16 Aug 2012 12:47:22 -0400
changeset 102554 6a85b6cd56ffc13fd0efa08bb3292d8f889835d8
parent 102553 4392d5928cf148fe29ace861fe84d9997f60fffa
child 102555 12c614d36e0b73d9ad3962ffe115e79cd13dd25a
push id23296
push userryanvm@gmail.com
push dateFri, 17 Aug 2012 00:50:18 +0000
treeherdermozilla-central@a79132ac2f05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs781542
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 781542 - Don't require a layer invalidation for Flash video on Android r=blassey
dom/plugins/base/nsNPAPIPluginInstance.cpp
--- a/dom/plugins/base/nsNPAPIPluginInstance.cpp
+++ b/dom/plugins/base/nsNPAPIPluginInstance.cpp
@@ -997,17 +997,17 @@ nsSurfaceTexture* nsNPAPIPluginInstance:
   nsCOMPtr<nsIRunnable> frameCallback = NS_NewRunnableMethod(this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable);
   surface->SetFrameAvailableCallback(frameCallback);
   return surface;
 }
 
 void nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable()
 {
   if (mRunning == RUNNING && mOwner)
-    RedrawPlugin();
+    AndroidBridge::Bridge()->ScheduleComposite();
 }
 
 void* nsNPAPIPluginInstance::AcquireContentWindow()
 {
   if (!mContentSurface) {
     mContentSurface = CreateSurfaceTexture();
 
     if (!mContentSurface)