Bug 627273, part 4: Basic impl of ImageLayer tiling for basic layers. r=roc,vlad

This commit is contained in:
Chris Jones
2011-01-26 00:26:37 -06:00
parent 9920db298a
commit b582ced71b
6 changed files with 69 additions and 12 deletions

View File

@@ -200,6 +200,17 @@ LayerManager::CreateOptimalSurface(const gfxIntSize &aSize,
CreateOffscreenSurface(aSize, gfxASurface::ContentFromFormat(aFormat));
}
#ifdef DEBUG
void
LayerManager::Mutated(Layer* aLayer)
{
NS_ABORT_IF_FALSE(!aLayer->GetTileSourceRect() ||
(LAYERS_BASIC == GetBackendType() &&
Layer::TYPE_IMAGE == aLayer->GetType()),
"Tiling not supported for this manager/layer type");
}
#endif // DEBUG
//--------------------------------------------------
// Layer