1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 #ifndef mozilla_gfx_config_gfxFallback_h 7 #define mozilla_gfx_config_gfxFallback_h 8 9 #include <stdint.h> 10 #include "gfxTelemetry.h" 11 12 namespace mozilla { 13 namespace gfx { 14 15 #define GFX_FALLBACK_MAP(_) \ 16 /* Name */ \ 17 _(NO_CONSTANT_BUFFER_OFFSETTING) \ 18 /* Add new entries above this comment */ 19 20 enum class Fallback : uint32_t { 21 #define MAKE_ENUM(name) name, 22 GFX_FALLBACK_MAP(MAKE_ENUM) 23 #undef MAKE_ENUM 24 NumValues 25 }; 26 27 } // namespace gfx 28 } // namespace mozilla 29 30 #endif // mozilla_gfx_config_gfxFallback_h 31