зеркало из https://github.com/mozilla/gecko-dev.git
Use TextureSourceProvider instead of Compositor in TiledContentHost. (bug 1420674 part 3, r=mattwoodrow)
This commit is contained in:
Родитель
cf981e7ff0
Коммит
49c3410c44
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче