Bug 1323797 - Add compositor support for triangle layers (for BasicCompositor backend) - Part 1: Replace DrawQuad with DrawGeometry r=mattwoodrow

MozReview-Commit-ID: ysOOFWwG5F

--HG--
extra : rebase_source : 45c978c805cc114c85e7112b2c2c2b2c591d1019
This commit is contained in:
Miko Mynttinen 2017-01-10 16:12:51 +02:00
Родитель a87878e727
Коммит 9165ead692
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -429,9 +429,9 @@ RenderLayers(ContainerT* aContainer, LayerManagerComposite* aManager,
// should only occur transiently.
EffectChain effectChain(layer);
effectChain.mPrimaryEffect = new EffectSolidColor(color);
aManager->GetCompositor()->DrawQuad(gfx::Rect(layer->GetLayerBounds()), clipRect,
effectChain, layer->GetEffectiveOpacity(),
layer->GetEffectiveTransform());
aManager->GetCompositor()->DrawGeometry(gfx::Rect(layer->GetLayerBounds()), clipRect,
effectChain, layer->GetEffectiveOpacity(),
layer->GetEffectiveTransform(), Nothing());
}
if (layerToRender->HasLayerBeenComposited()) {