Bug 1919083 - [ci] Enable os-integration variant for more suites, r=jmaher
[gecko.git] / gfx / thebes / ThebesRLBox.h
blob2f4188a962d7472c4ce757c3babb962be854a4e6
1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef THEBES_RLBOX
7 #define THEBES_RLBOX
9 #include "ThebesRLBoxTypes.h"
11 // Load general firefox configuration of RLBox
12 #include "mozilla/rlbox/rlbox_config.h"
14 #ifdef MOZ_WASM_SANDBOXING_GRAPHITE
15 // Include the generated header file so that we are able to resolve the symbols
16 // in the wasm binary
17 # include "rlbox.wasm.h"
18 # define RLBOX_USE_STATIC_CALLS() rlbox_wasm2c_sandbox_lookup_symbol
19 # include "mozilla/rlbox/rlbox_wasm2c_sandbox.hpp"
20 #else
21 # define RLBOX_USE_STATIC_CALLS() rlbox_noop_sandbox_lookup_symbol
22 # include "mozilla/rlbox/rlbox_noop_sandbox.hpp"
23 #endif
25 #include "mozilla/rlbox/rlbox.hpp"
27 // Struct info needed for rlbox_load_structs_from_library
28 #include "graphite2/Font.h"
29 #include "graphite2/GraphiteExtra.h"
30 #include "graphite2/Segment.h"
32 #include "graphite2/GraphiteStructsForRLBox.h"
33 rlbox_load_structs_from_library(graphite);
35 #endif