Use TextureSourceProvider instead of Compositor in TiledContentHost. (bug 1420674 part 3, r=mattwoodrow)

This commit is contained in:
David Anderson 2017-11-28 18:34:58 -08:00
Родитель cf981e7ff0
Коммит 49c3410c44
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -161,15 +161,15 @@ void
UseTileTexture(CompositableTextureHostRef& aTexture,
CompositableTextureSourceRef& aTextureSource,
const IntRect& aUpdateRect,
Compositor* aCompositor)
TextureSourceProvider* aProvider)
{
MOZ_ASSERT(aTexture);
if (!aTexture) {
return;
}
if (aCompositor) {
aTexture->SetTextureSourceProvider(aCompositor);
if (aProvider) {
aTexture->SetTextureSourceProvider(aProvider);
}
if (!aUpdateRect.IsEmpty()) {
@ -358,13 +358,13 @@ TiledLayerBufferComposite::UseTiles(const SurfaceDescriptorTiles& aTiles,
UseTileTexture(tile.mTextureHost,
tile.mTextureSource,
texturedDesc.updateRect(),
aLayerManager->GetCompositor());
aLayerManager->GetTextureSourceProvider());
if (tile.mTextureHostOnWhite) {
UseTileTexture(tile.mTextureHostOnWhite,
tile.mTextureSourceOnWhite,
texturedDesc.updateRect(),
aLayerManager->GetCompositor());
aLayerManager->GetTextureSourceProvider());
}
}