michael@0: /* vim:set ts=2 sw=2 sts=2 et: */ michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ michael@0: */ michael@0: michael@0: #ifndef GFX_TEST_LAYERS_H michael@0: #define GFX_TEST_LAYERS_H michael@0: michael@0: #include "Layers.h" michael@0: #include "nsTArray.h" michael@0: michael@0: /* Create layer tree from a simple layer tree description syntax. michael@0: * Each index is either the first letter of the layer type or michael@0: * a '(',')' to indicate the start/end of the child layers. michael@0: * The aim of this function is to remove hard to read michael@0: * layer tree creation code. michael@0: * michael@0: * Example "c(c(c(tt)t))" would yield: michael@0: * c michael@0: * | michael@0: * c michael@0: * / \ michael@0: * c t michael@0: * / \ michael@0: * t t michael@0: */ michael@0: already_AddRefed CreateLayerTree( michael@0: const char* aLayerTreeDescription, michael@0: nsIntRegion* aVisibleRegions, michael@0: const gfx3DMatrix* aTransforms, michael@0: nsRefPtr& aLayerManager, michael@0: nsTArray >& aLayersOut); michael@0: michael@0: michael@0: #endif michael@0: