gfx/tests/gtest/TestLayers.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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