Bug 1500587 - Skip generating bindings for constants because we don't need them. r=rhunt
authorKartikaya Gupta <kgupta@mozilla.com>
Sun, 21 Oct 2018 22:59:25 +0000
changeset 490625 a4333f1bf9796e90f3f8a6b719af437608222abf
parent 490611 b2fa4b07f6f7e489047808bd0238301ea943b4b3
child 490626 802c67d2fc6d7a4a5cf2acf25a29c4f7ebde1c93
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersrhunt
bugs1500587
milestone64.0a1
Bug 1500587 - Skip generating bindings for constants because we don't need them. r=rhunt Differential Revision: https://phabricator.services.mozilla.com/D9296
gfx/webrender_bindings/cbindgen.toml
gfx/webrender_bindings/webrender_ffi_generated.h
--- a/gfx/webrender_bindings/cbindgen.toml
+++ b/gfx/webrender_bindings/cbindgen.toml
@@ -9,16 +9,20 @@ autogen_warning = """/* DO NOT MODIFY TH
  */"""
 include_version = true
 braces = "SameLine"
 line_length = 100
 tab_width = 2
 language = "C++"
 namespaces = ["mozilla", "wr"]
 
+[export]
+# Skip constants because we don't have any
+item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions"]
+
 [parse]
 parse_deps = true
 include = ["log", "webrender", "webrender_api"]
 expand = ["euclid"]
 
 [fn]
 prefix = "WR_INLINE"
 postfix = "WR_FUNC"
--- a/gfx/webrender_bindings/webrender_ffi_generated.h
+++ b/gfx/webrender_bindings/webrender_ffi_generated.h
@@ -1,31 +1,27 @@
 /* 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/. */
 
-/* Generated with cbindgen:0.6.3 */
+/* Generated with cbindgen:0.6.6 */
 
 /* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
  * To generate this file:
  *   1. Get the latest cbindgen using `cargo install --force cbindgen`
  *      a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
  *   2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
  */
 
 #include <cstdint>
 #include <cstdlib>
 
 namespace mozilla {
 namespace wr {
 
-static const uint32_t MAX_CACHED_PROGRAM_COUNT = 15;
-
-static const uint64_t MAX_LOAD_TIME_MS = 400;
-
 // Whether a border should be antialiased.
 enum class AntialiasBorder {
   No = 0,
   Yes,
 
   Sentinel /* this must be last for serialization purposes. */
 };