Bug 1268122 - Guard against layerview destruction between the compositor update task being posted and it running. r=snorp a=ritu

MozReview-Commit-ID: HJIFbcduj6E
This commit is contained in:
Kartikaya Gupta 2016-04-28 15:03:02 -04:00
parent 891b51bee8
commit 535c7568c4

View File

@ -142,6 +142,10 @@ public class GLController extends JNIObject {
void updateCompositor() {
ThreadUtils.assertOnUiThread();
if (mView == null) {
return;
}
if (mCompositorCreated) {
// If the compositor has already been created, just resume it instead. We don't need
// to block here because if the surface is destroyed before the compositor grabs it,