Backed out changeset 1405060b0c96 (bug 1043426) for failures in async-scrolling/element-1.html

This commit is contained in:
Ed Morley 2014-08-04 14:41:46 +01:00
parent 70fd63dbf8
commit 4018f85639
3 changed files with 4 additions and 13 deletions

View File

@ -1013,7 +1013,7 @@ ContainerLayer::DefaultComputeEffectiveTransforms(const Matrix4x4& aTransformToS
}
}
mUseIntermediateSurface = useIntermediateSurface && !GetEffectiveVisibleRegion().IsEmpty();
mUseIntermediateSurface = useIntermediateSurface;
if (useIntermediateSurface) {
ComputeEffectiveTransformsForChildren(Matrix4x4::From2D(residual));
} else {

View File

@ -401,7 +401,6 @@ RenderLayers(ContainerT* aContainer,
for (size_t i = 0u; i < aContainer->mPrepared->mLayers.Length(); i++) {
PreparedLayer& preparedData = aContainer->mPrepared->mLayers[i];
LayerComposite* layerToRender = preparedData.mLayer;
nsIntRect clipRect = preparedData.mClipRect;
if (layerToRender->HasLayerBeenComposited()) {
// Composer2D will compose this layer so skip GPU composition
@ -503,11 +502,6 @@ ContainerRender(ContainerT* aContainer,
LayerManagerComposite* aManager,
const nsIntRect& aClipRect)
{
nsIntRect visibleRect = aContainer->GetEffectiveVisibleRegion().GetBounds();
if (visibleRect.IsEmpty()) {
return;
}
MOZ_ASSERT(aContainer->mPrepared);
if (aContainer->UseIntermediateSurface()) {
RefPtr<CompositingRenderTarget> surface;
@ -522,6 +516,7 @@ ContainerRender(ContainerT* aContainer,
float opacity = aContainer->GetEffectiveOpacity();
nsIntRect visibleRect = aContainer->GetEffectiveVisibleRegion().GetBounds();
#ifdef MOZ_DUMP_PAINTING
if (gfxUtils::sDumpPainting) {
RefPtr<gfx::DataSourceSurface> surf = surface->Dump(aManager->GetCompositor());

View File

@ -108,12 +108,6 @@ ThebesLayerComposite::GetRenderState()
void
ThebesLayerComposite::RenderLayer(const nsIntRect& aClipRect)
{
const nsIntRegion& visibleRegion = GetEffectiveVisibleRegion();
if (visibleRegion.IsEmpty()) {
return;
}
if (!mBuffer || !mBuffer->IsAttached()) {
return;
}
@ -139,6 +133,8 @@ ThebesLayerComposite::RenderLayer(const nsIntRect& aClipRect)
LayerManagerComposite::AutoAddMaskEffect autoMaskEffect(mMaskLayer, effectChain);
AddBlendModeEffect(effectChain);
const nsIntRegion& visibleRegion = GetEffectiveVisibleRegion();
TiledLayerProperties tiledLayerProps;
if (mRequiresTiledProperties) {
tiledLayerProps.mVisibleRegion = visibleRegion;