Backed out changeset 82ee5a86dead (bug 1181375)

This commit is contained in:
Carsten "Tomcat" Book
2015-07-10 09:27:30 +02:00
parent 9c5a735d3e
commit bb85ae552c

View File

@@ -74,16 +74,6 @@ function reportTestReason(val) {
histogram.add(val);
}
function annotateCrashReport(value) {
try {
// "1" if we're annotating the crash report, "" to remove the annotation.
var crashReporter = Cc['@mozilla.org/toolkit/crash-reporter;1'].
getService(Ci.nsICrashReporter);
crashReporter.annotateCrashReport("GraphicsSanityTest", value ? "1" : "");
} catch (e) {
}
}
function takeWindowSnapshot(win, ctx) {
// TODO: drawWindow reads back from the gpu's backbuffer, which won't catch issues with presenting
// the front buffer via the window manager. Ideally we'd use an OS level API for reading back
@@ -217,10 +207,6 @@ let listener = {
});
this.mm = null;
// Remove the annotation after we've cleaned everything up, to catch any
// incidental crashes from having performed the sanity test.
annotateCrashReport(false);
}
};
@@ -281,8 +267,6 @@ SanityTest.prototype = {
if (topic != "profile-after-change") return;
if (!this.shouldRunTest()) return;
annotateCrashReport(true);
// Open a tiny window to render our test page, and notify us when it's loaded
var sanityTest = Services.ww.openWindow(null,
"chrome://gfxsanity/content/sanityparent.html",