mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Backed out changeset c633db465597 (bug 1245959) for frequent timeout in mda test test_video_dimensions.html. r=backout
This commit is contained in:
parent
6c06a32cb9
commit
18fb75d3b3
@ -222,7 +222,6 @@ nsPluginInstanceOwner::GetImageContainer()
|
||||
|
||||
container = LayerManager::CreateImageContainer();
|
||||
|
||||
if (r.width && r.height) {
|
||||
// Try to get it as an EGLImage first.
|
||||
RefPtr<Image> img;
|
||||
AttachToContainerAsSurfaceTexture(container, mInstance, r, &img);
|
||||
@ -230,7 +229,6 @@ nsPluginInstanceOwner::GetImageContainer()
|
||||
if (img) {
|
||||
container->SetCurrentImageInTransaction(img);
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (NeedsScrollImageLayer()) {
|
||||
// windowed plugin under e10s
|
||||
@ -1580,13 +1578,11 @@ nsPluginInstanceOwner::GetImageContainerForVideo(nsNPAPIPluginInstance::VideoInf
|
||||
{
|
||||
RefPtr<ImageContainer> container = LayerManager::CreateImageContainer();
|
||||
|
||||
if (aVideoInfo->mDimensions.width && aVideoInfo->mDimensions.height) {
|
||||
RefPtr<Image> img = new SurfaceTextureImage(
|
||||
aVideoInfo->mSurfaceTexture,
|
||||
gfx::IntSize::Truncate(aVideoInfo->mDimensions.width, aVideoInfo->mDimensions.height),
|
||||
gl::OriginPos::BottomLeft);
|
||||
container->SetCurrentImageInTransaction(img);
|
||||
}
|
||||
|
||||
return container.forget();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user