gecko-dev/widget/android
Robert O'Callahan 84a1b0dd5a Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.

--HG--
extra : commitid : 3t3xqRdZs24
extra : rebase_source : b23749613663ca805484776ccf5e36b4ff00e3fe
2015-06-12 03:20:04 +12:00
..
android
bindings Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
jni
AndroidBridge.cpp Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical 2015-06-12 03:20:04 +12:00
AndroidBridge.h Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical 2015-06-12 03:20:04 +12:00
AndroidBridgeUtilities.h
AndroidContentController.cpp Bug 1077559 - Rename APZCCallbackHandler to AndroidContentController. r=botond 2015-04-24 22:26:51 -04:00
AndroidContentController.h Bug 1077559 - Rename APZCCallbackHandler to AndroidContentController. r=botond 2015-04-24 22:26:51 -04:00
AndroidDirectTexture.cpp
AndroidDirectTexture.h
AndroidGraphicBuffer.cpp
AndroidGraphicBuffer.h
AndroidJavaWrappers.cpp Bug 1158425 - Rename _SYNTH event names. r=smaug 2015-05-01 22:06:00 -04:00
AndroidJavaWrappers.h Merge inbound to m-c a=merge CLOSED TREE 2015-04-22 17:15:53 -07:00
AndroidJNI.cpp Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical 2015-06-12 03:20:04 +12:00
AndroidJNIWrapper.cpp
AndroidJNIWrapper.h
GeneratedJNIWrappers.cpp Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-27 20:52:52 -04:00
GeneratedJNIWrappers.h Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-27 20:52:52 -04:00
GfxInfo.cpp
GfxInfo.h
moz.build Bug 1077559 - Rename APZCCallbackHandler to AndroidContentController. r=botond 2015-04-24 22:26:51 -04:00
NativeJSContainer.cpp Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
NativeJSContainer.h
nsAndroidProtocolHandler.cpp
nsAndroidProtocolHandler.h
nsAppShell.cpp Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
nsAppShell.h
nsClipboard.cpp
nsClipboard.h
nsDeviceContextAndroid.cpp
nsDeviceContextAndroid.h
nsIAndroidBridge.idl
nsIdleServiceAndroid.cpp
nsIdleServiceAndroid.h
nsIMEPicker.cpp
nsIMEPicker.h
nsLookAndFeel.cpp Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
nsLookAndFeel.h
nsPrintOptionsAndroid.cpp
nsPrintOptionsAndroid.h
nsScreenManagerAndroid.cpp
nsScreenManagerAndroid.h
nsWidgetFactory.cpp
nsWindow.cpp Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical 2015-06-12 03:20:04 +12:00
nsWindow.h Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical 2015-06-12 03:20:04 +12:00