Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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