Bug 1148718 - init TextureSource for current TextureHost when attach. r=nical, r=sotaro

This commit is contained in:
JerryShih 2015-04-02 09:40:00 -04:00
parent e487f6624c
commit 6556a9dbf8

View File

@ -156,6 +156,12 @@ public:
SetLayer(aLayer);
mAttached = true;
mKeepAttached = aFlags & KEEP_ATTACHED;
// If we already have a textureHost before, use that in this moment.
RefPtr<TextureHost> frontBuffer = GetAsTextureHost();
if (frontBuffer) {
UseTextureHost(frontBuffer);
}
}
// Detach this compositable host from its layer.
// If we are used for async video, then it is not safe to blindly detach since