gecko-dev/gfx/webrender_bindings/webrender_ffi.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

131 строка
4.4 KiB
C
Исходник Обычный вид История

Bug 1317774 - Add webrender and dependencies. r=gfx MozReview-Commit-ID: LwDx4WjJZI9 --HG-- rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/app_units/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/app_units/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bincode/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bit-set/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/bit-set/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bit-set/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bit-set/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bit-vec/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/bit-vec/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bit-vec/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bit-vec/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bitflags/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bitflags/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bitflags/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/cgl/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/cgl/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/cgl/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/cgl/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/cmake/.cargo-ok rename : third_party/rust/libz-sys/.travis.yml => third_party/rust/cmake/.travis.yml rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/cmake/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/cmake/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-foundation-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-foundation/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-graphics/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/core-graphics/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/core-graphics/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-text/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/core-text/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/core-text/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/deque/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/deque/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/deque/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/euclid/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/euclid/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/euclid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/euclid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/fnv/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/fnv/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/freetype/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/freetype/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/freetype/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gdi32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gl_generator/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gleam/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/gleam/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/gleam/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/heapsize/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/ipc-channel/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/ipc-channel/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/ipc-channel/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/ipc-channel/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/ipc-channel/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/kernel32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/khronos_api/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/lazy_static/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/lazy_static/.gitignore rename : third_party/rust/libc/src/unix/bsd/openbsdlike/mod.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs rename : third_party/rust/libc/src/unix/bsd/openbsdlike/netbsd.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs rename : third_party/rust/libc/src/unix/bsd/openbsdlike/openbsd.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/openbsdlike/mod.rs rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/log/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/log/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/log/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/log/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/log/appveyor.yml rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/matches/LICENSE rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/num-traits/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/num_cpus/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/num_cpus/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/num_cpus/LICENSE-APACHE rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/offscreen_gl_context/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/offscreen_gl_context/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/osmesa-sys/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/osmesa-sys/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/post-expansion/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/quote/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rand/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/rand/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rand/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rand/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/rand/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rayon/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/rayon/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rayon/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rayon/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rayon/src/par_iter/misc.rs rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rustc-serialize/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rustc-serialize/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rustc-serialize/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/rustc-serialize/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde_codegen/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde_codegen_internals/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/servo-freetype-sys/.cargo-ok rename : third_party/rust/libz-sys/src/zlib-1.2.8/zutil.h => third_party/rust/servo-freetype-sys/freetype2/src/gzip/zutil.h rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/shared_library/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/shared_library/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syn/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_errors/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_pos/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_syntax/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/term/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/term/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/term/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/term/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/time/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/time/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/time/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/time/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/unicode-xid/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/unicode-xid/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/unicode-xid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/unicode-xid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/user32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/uuid/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/uuid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/uuid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/winapi-build/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/winapi/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/x11/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/xml-rs/.cargo-ok
2016-11-16 16:54:51 +03:00
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef WR_h
#define WR_h
#include "mozilla/gfx/Types.h"
#include "nsTArray.h"
Bug 1317774 - Add webrender and dependencies. r=gfx MozReview-Commit-ID: LwDx4WjJZI9 --HG-- rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/app_units/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/app_units/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bincode/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bit-set/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/bit-set/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bit-set/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bit-set/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bit-vec/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/bit-vec/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bit-vec/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bit-vec/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/bitflags/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/bitflags/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/bitflags/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/cgl/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/cgl/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/cgl/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/cgl/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/cmake/.cargo-ok rename : third_party/rust/libz-sys/.travis.yml => third_party/rust/cmake/.travis.yml rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/cmake/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/cmake/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-foundation-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-foundation/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-graphics/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/core-graphics/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/core-graphics/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/core-text/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/core-text/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/core-text/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/deque/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/deque/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/deque/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/euclid/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/euclid/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/euclid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/euclid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/fnv/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/fnv/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/freetype/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/freetype/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/freetype/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gdi32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gl_generator/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/gleam/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/gleam/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/gleam/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/heapsize/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/ipc-channel/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/ipc-channel/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/ipc-channel/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/ipc-channel/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/ipc-channel/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/kernel32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/khronos_api/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/lazy_static/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/lazy_static/.gitignore rename : third_party/rust/libc/src/unix/bsd/openbsdlike/mod.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs rename : third_party/rust/libc/src/unix/bsd/openbsdlike/netbsd.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs rename : third_party/rust/libc/src/unix/bsd/openbsdlike/openbsd.rs => third_party/rust/libc/src/unix/bsd/netbsdlike/openbsdlike/mod.rs rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/log/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/log/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/log/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/log/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/log/appveyor.yml rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/matches/LICENSE rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/num-traits/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/num_cpus/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/num_cpus/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/num_cpus/LICENSE-APACHE rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/offscreen_gl_context/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/offscreen_gl_context/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/osmesa-sys/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/osmesa-sys/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/post-expansion/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/quote/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rand/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/rand/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rand/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rand/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/rand/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rayon/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/rayon/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rayon/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rayon/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rayon/src/par_iter/misc.rs rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/rustc-serialize/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/rustc-serialize/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/rustc-serialize/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/rustc-serialize/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde_codegen/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/serde_codegen_internals/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/servo-freetype-sys/.cargo-ok rename : third_party/rust/libz-sys/src/zlib-1.2.8/zutil.h => third_party/rust/servo-freetype-sys/freetype2/src/gzip/zutil.h rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/shared_library/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/shared_library/.gitignore rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syn/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_errors/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_pos/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/syntex_syntax/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/term/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/term/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/term/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/term/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/time/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/time/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/time/LICENSE-MIT rename : third_party/rust/libz-sys/appveyor.yml => third_party/rust/time/appveyor.yml rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/unicode-xid/.cargo-ok rename : third_party/rust/libz-sys/.gitignore => third_party/rust/unicode-xid/.gitignore rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/unicode-xid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/unicode-xid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/user32-sys/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/uuid/.cargo-ok rename : third_party/rust/libz-sys/LICENSE-APACHE => third_party/rust/uuid/LICENSE-APACHE rename : third_party/rust/libz-sys/LICENSE-MIT => third_party/rust/uuid/LICENSE-MIT rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/winapi-build/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/winapi/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/x11/.cargo-ok rename : third_party/rust/libz-sys/.cargo-ok => third_party/rust/xml-rs/.cargo-ok
2016-11-16 16:54:51 +03:00
extern "C" {
// ----
// Functions invoked from Rust code
// ----
bool is_in_compositor_thread();
bool is_in_main_thread();
bool is_in_render_thread();
bool is_glcontext_gles(void* glcontext_ptr);
bool is_glcontext_angle(void* glcontext_ptr);
bool gfx_use_wrench();
const char* gfx_wr_resource_path_override();
bool gfx_wr_use_optimized_shaders();
void gfx_critical_note(const char* msg);
void gfx_critical_error(const char* msg);
void gecko_printf_stderr_output(const char* msg);
void* get_proc_address_from_glcontext(void* glcontext_ptr,
const char* procname);
void gecko_profiler_register_thread(const char* threadname);
void gecko_profiler_unregister_thread();
void gecko_profiler_start_marker(const char* name);
void gecko_profiler_end_marker(const char* name);
void gecko_profiler_event_marker(const char* name);
void gecko_profiler_add_text_marker(const char* name, const char* text_ptr,
size_t text_len, uint64_t microseconds);
bool gecko_profiler_thread_is_being_profiled();
// IMPORTANT: Keep this synchronized with enumerate_interners in
// gfx/wr/webrender_api
#define WEBRENDER_FOR_EACH_INTERNER(macro) \
macro(clip); \
macro(prim); \
macro(normal_border); \
macro(image_border); \
macro(image); \
macro(yuv_image); \
macro(line_decoration); \
macro(linear_grad); \
macro(radial_grad); \
macro(conic_grad); \
macro(picture); \
macro(text_run); \
macro(filterdata); \
macro(backdrop);
// Prelude of types necessary before including webrender_ffi_generated.h
namespace mozilla {
namespace wr {
// Because this struct is macro-generated on the Rust side, cbindgen can't see
// it. Work around that by re-declaring it here.
#define DECLARE_MEMBER(id) uintptr_t id;
struct InternerSubReport {
WEBRENDER_FOR_EACH_INTERNER(DECLARE_MEMBER)
};
#undef DECLARE_MEMBER
struct Transaction;
struct WrWindowId;
struct DocumentId;
struct WrPipelineInfo;
struct WrPipelineIdAndEpoch;
using WrPipelineIdEpochs = nsTArray<WrPipelineIdAndEpoch>;
const uint64_t ROOT_CLIP_CHAIN = ~0;
} // namespace wr
} // namespace mozilla
void apz_register_updater(mozilla::wr::WrWindowId aWindowId);
void apz_pre_scene_swap(mozilla::wr::WrWindowId aWindowId);
void apz_post_scene_swap(mozilla::wr::WrWindowId aWindowId,
const mozilla::wr::WrPipelineInfo* aInfo);
void apz_run_updater(mozilla::wr::WrWindowId aWindowId);
void apz_deregister_updater(mozilla::wr::WrWindowId aWindowId);
void apz_register_sampler(mozilla::wr::WrWindowId aWindowId);
void apz_sample_transforms(
mozilla::wr::WrWindowId aWindowId, mozilla::wr::Transaction* aTransaction,
const mozilla::wr::WrPipelineIdEpochs* aPipelineEpochs);
void apz_deregister_sampler(mozilla::wr::WrWindowId aWindowId);
void omta_register_sampler(mozilla::wr::WrWindowId aWindowId);
void omta_sample(mozilla::wr::WrWindowId aWindowId,
mozilla::wr::Transaction* aTransaction);
void omta_deregister_sampler(mozilla::wr::WrWindowId aWindowId);
} // extern "C"
// Work-around wingdi.h define which conflcits with WR color constant
#pragma push_macro("TRANSPARENT")
#undef TRANSPARENT
#include "webrender_ffi_generated.h"
#pragma pop_macro("TRANSPARENT")
// More functions invoked from Rust code. These are down here because they
// refer to data structures from webrender_ffi_generated.h
extern "C" {
void record_telemetry_time(mozilla::wr::TelemetryProbe aProbe,
uint64_t aTimeNs);
}
namespace mozilla {
namespace wr {
// Cast a blob image key into a regular image for use in
// a display item.
inline ImageKey AsImageKey(BlobImageKey aKey) { return aKey._0; }
} // namespace wr
} // namespace mozilla
#endif // WR_h