gfx/tests/gtest/TestLayers.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial