gfx/tests/gtest/TestLayers.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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  */
     6 #ifndef GFX_TEST_LAYERS_H
     7 #define GFX_TEST_LAYERS_H
     9 #include "Layers.h"
    10 #include "nsTArray.h"
    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);
    35 #endif

mercurial