Backed out changeset 5b9886673514 (bug 1201541) for android reftest orange CLOSED TREE

This commit is contained in:
Wes Kocher 2015-09-11 11:21:22 -07:00
Родитель bd52f994bf
Коммит bbe3773db1
2 изменённых файлов: 11 добавлений и 1 удалений

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

@ -411,9 +411,12 @@ ClientTiledPaintedLayer::RenderLayer()
void *data = ClientManager()->GetPaintedLayerCallbackData();
if (!mContentClient) {
#if defined(MOZ_B2G) || defined(XP_MACOSX)
if (mCreationHint == LayerManager::NONE) {
mContentClient = new SingleTiledContentClient(this, ClientManager());
} else {
} else
#endif
{
mContentClient = new MultiTiledContentClient(this, ClientManager());
}
@ -557,6 +560,7 @@ ClientTiledPaintedLayer::RenderLayer()
bool
ClientTiledPaintedLayer::IsOptimizedFor(LayerManager::PaintedLayerCreationHint aHint)
{
#if defined(MOZ_B2G) || defined(XP_MACOSX)
// The only creation hint is whether the layer is scrollable or not, and this
// is only respected on B2G and OSX, where it's used to determine whether to
// use a tiled content client or not.
@ -564,6 +568,9 @@ ClientTiledPaintedLayer::IsOptimizedFor(LayerManager::PaintedLayerCreationHint a
// large, scrollable layers, so we want the layer to be recreated in this
// situation.
return aHint == GetCreationHint();
#else
return true;
#endif
}
void

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

@ -2040,6 +2040,9 @@ ContainerState::GetLayerCreationHint(const nsIFrame* aAnimatedGeometryRoot)
{
// Check whether the layer will be scrollable. This is used as a hint to
// influence whether tiled layers are used or not.
if (mParameters.mInLowPrecisionDisplayPort) {
return LayerManager::SCROLLABLE;
}
nsIFrame* animatedGeometryRootParent = aAnimatedGeometryRoot->GetParent();
nsIScrollableFrame* scrollable = do_QueryFrame(animatedGeometryRootParent);
if (scrollable