gfx/tests/gtest/TestLayers.h

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:9011e66edb71
1 /* vim:set ts=2 sw=2 sts=2 et: */
2 /* Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
5
6 #ifndef GFX_TEST_LAYERS_H
7 #define GFX_TEST_LAYERS_H
8
9 #include "Layers.h"
10 #include "nsTArray.h"
11
12 /* Create layer tree from a simple layer tree description syntax.
13 * Each index is either the first letter of the layer type or
14 * a '(',')' to indicate the start/end of the child layers.
15 * The aim of this function is to remove hard to read
16 * layer tree creation code.
17 *
18 * Example "c(c(c(tt)t))" would yield:
19 * c
20 * |
21 * c
22 * / \
23 * c t
24 * / \
25 * t t
26 */
27 already_AddRefed<mozilla::layers::Layer> CreateLayerTree(
28 const char* aLayerTreeDescription,
29 nsIntRegion* aVisibleRegions,
30 const gfx3DMatrix* aTransforms,
31 nsRefPtr<mozilla::layers::LayerManager>& aLayerManager,
32 nsTArray<nsRefPtr<mozilla::layers::Layer> >& aLayersOut);
33
34
35 #endif
36

mercurial