author Nicholas Nethercote <>
Mon, 28 Sep 2015 21:11:52 -0700
changeset 302316 feb0f7522ece30fdcc264ccb8df5e580c4f27a07
parent 277951 34066854f6450ce7e401d9f2763d66f4c236eec2
child 346136 3ec6380fca8207fa199693206a3ca24975bf9833
permissions -rw-r--r--
Bug 1209812 (part 1) - Remove casts between cairo_format_t and gfxImageFormat. r=nical. cairo_format_t and gfxImageFormat have their equivalent constants in the same order, so you can just cast between them, which is kind of nasty. This patch replaces all such casts with explicit conversions via calls to new conversion functions. These functions will be removed in a subsequent patch.

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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

mfbt_src_lcppsrcs = [

mfbt_src_cppsrcs = [
    '/mfbt/%s' % s for s in mfbt_src_lcppsrcs

# Compression.cpp cannot be built in unified mode because it pulls in Windows system headers.
# Decimal.cpp doesn't build in unified mode with gcc.
mfbt_nonunified_src_lcppsrcs = [

mfbt_nonunified_src_cppsrcs = [
    '/mfbt/%s' % s for s in mfbt_nonunified_src_lcppsrcs