Bug 748832. Remove dead paint supression code. r=kats

Bug 732564 disabled the painting suppression code in browser.js. This removes
the caller and the interface.

--HG--
extra : rebase_source : 236f81abcf980c41ffdb6c29dc4290a6a7671d14
This commit is contained in:
Jeff Muizelaar 2012-04-25 12:49:43 -04:00
parent 3f70ab0134
commit 0816fa076e
3 changed files with 1 additions and 29 deletions

View File

@ -155,10 +155,6 @@ var MetadataProvider = {
getDrawMetadata: function getDrawMetadata() {
return JSON.stringify(BrowserApp.selectedTab.getViewport());
},
paintingSuppressed: function paintingSuppressed() {
return false;
}
};
var BrowserApp = {

View File

@ -1,15 +1,9 @@
#include "nsISupports.idl"
#include "nsIDOMWindow.idl"
[scriptable, uuid(38b5c83a-3e8d-45c2-8311-6e36bd5116c0)]
[scriptable, uuid(56fd8e18-a5cf-4e7a-92ba-4f68b4ad50ac)]
interface nsIAndroidDrawMetadataProvider : nsISupports {
AString getDrawMetadata();
/*
* Returns true if the presentation shell corresponding to the currently-viewed document is
* suppressing painting (which occurs during page transitions) and false otherwise.
*/
boolean paintingSuppressed();
};
[scriptable, uuid(0843f3c1-043e-4c64-9d8c-091370548c05)]

View File

@ -1118,24 +1118,6 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
return;
}
/*
* Check to see whether the presentation shell corresponding to the document on the screen
* is suppressing painting. If it is, we bail out, as continuing would result in a mismatch
* between the content on the screen and the current viewport metrics.
*/
nsCOMPtr<nsIAndroidDrawMetadataProvider> metadataProvider =
AndroidBridge::Bridge()->GetDrawMetadataProvider();
layers::renderTraceEventStart("Check supress", "424242");
bool paintingSuppressed = false;
if (metadataProvider) {
metadataProvider->PaintingSuppressed(&paintingSuppressed);
}
if (paintingSuppressed) {
return;
}
layers::renderTraceEventEnd("Check supress", "424242");
layers::renderTraceEventStart("Get surface", "424545");
static unsigned char bits2[32 * 32 * 2];
nsRefPtr<gfxImageSurface> targetSurface =