Bug 1227706 - Remove unused GLController calls and events; r=snorp

Remove GLController calls and events in GeckoAppShell and GeckoEvent
that were made obsolete by the new native calls.
This commit is contained in:
Jim Chen
2015-12-23 22:03:34 -05:00
parent 7ed136b880
commit 6032b19e9b
9 changed files with 0 additions and 119 deletions

View File

@@ -824,30 +824,6 @@ nsAppShell::LegacyGeckoEvent::PostTo(mozilla::LinkedList<Event>& queue)
{
EVLOG("nsAppShell::PostEvent %p %d", ae, ae->Type());
switch (ae->Type()) {
case AndroidGeckoEvent::COMPOSITOR_CREATE:
case AndroidGeckoEvent::COMPOSITOR_PAUSE:
case AndroidGeckoEvent::COMPOSITOR_RESUME:
// Give priority to these events, but maintain their order wrt each other.
{
Event* event = queue.getFirst();
while (event && event->HasSameTypeAs(this)) {
const auto& e = static_cast<LegacyGeckoEvent*>(event)->ae;
if (e->Type() != AndroidGeckoEvent::COMPOSITOR_CREATE
&& e->Type() != AndroidGeckoEvent::COMPOSITOR_PAUSE
&& e->Type() != AndroidGeckoEvent::COMPOSITOR_RESUME) {
break;
}
event = event->getNext();
}
if (event) {
event->setPrevious(this);
} else {
queue.insertBack(this);
}
EVLOG("nsAppShell: Inserting compositor event %d to maintain priority order", ae->Type());
}
break;
case AndroidGeckoEvent::VIEWPORT:
// Coalesce a previous viewport event with this one, while
// allowing coalescing to happen across native callback events.