author Bas Schouten <>
Fri, 06 Mar 2015 02:37:12 +0100
changeset 250308 a0dcce4081087e2e1f9d6ec7ebf3b9e37b7dc619
parent 247128 687012e14ec9fd24c81d48b1e2e076e96e23d1ce
child 409415 6909c7487def14b559d00c5181c403e36d09ee62
permissions -rw-r--r--
Bug 1138934 - Make sure the white texture of a component alpha pair is fully uploaded when new. r=nical, a=lmandel This is slightly wasteful since this will also always upload the full black texture. The wastage here is so rare and generally so few though that I don't think it's worth adding plumming for the texture host to know if this is the texture on white of on black.

/* -*- 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 */

/* Implements (nonstandard) PRI{ouxX}SIZE format macros for size_t types. */

#ifndef mozilla_SizePrintfMacros_h_
#define mozilla_SizePrintfMacros_h_

 * MSVC's libc does not support C99's %z format length modifier for size_t
 * types. Instead, we use Microsoft's nonstandard %I modifier for size_t, which
 * is unsigned __int32 on 32-bit platforms and unsigned __int64 on 64-bit
 * platforms:

#if defined(XP_WIN)
#  define PRIoSIZE  "Io"
#  define PRIuSIZE  "Iu"
#  define PRIxSIZE  "Ix"
#  define PRIXSIZE  "IX"
#  define PRIoSIZE  "zo"
#  define PRIuSIZE  "zu"
#  define PRIxSIZE  "zx"
#  define PRIXSIZE  "zX"

#endif  /* mozilla_SizePrintfMacros_h_ */