From 2974aacd34731fd5c10f5b47e1bb9a25e507b67b Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Sun, 21 Oct 2018 22:59:25 +0000 Subject: [PATCH] Bug 1500587 - Skip generating bindings for constants because we don't need them. r=rhunt Differential Revision: https://phabricator.services.mozilla.com/D9296 --HG-- extra : moz-landing-system : lando --- gfx/webrender_bindings/cbindgen.toml | 4 ++++ gfx/webrender_bindings/webrender_ffi_generated.h | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gfx/webrender_bindings/cbindgen.toml b/gfx/webrender_bindings/cbindgen.toml index 9dc1102f8ac1..121f67b5881d 100644 --- a/gfx/webrender_bindings/cbindgen.toml +++ b/gfx/webrender_bindings/cbindgen.toml @@ -14,6 +14,10 @@ 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"] diff --git a/gfx/webrender_bindings/webrender_ffi_generated.h b/gfx/webrender_bindings/webrender_ffi_generated.h index fd75bee9230a..8a1cf5469d44 100644 --- a/gfx/webrender_bindings/webrender_ffi_generated.h +++ b/gfx/webrender_bindings/webrender_ffi_generated.h @@ -2,7 +2,7 @@ * 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: @@ -17,10 +17,6 @@ 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,