tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 04cf27582307a9c351e991c740828d54cf786b76
parent 826fe7617677cdf80988b0b7b942673e2b5b2bb7
Author: Lee Salzman <lsalzman@mozilla.com>
Date:   Wed, 10 Dec 2025 17:24:48 +0000

Bug 2004602. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D275523

Diffstat:
Mgfx/2d/HelpersCairo.h | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gfx/2d/HelpersCairo.h b/gfx/2d/HelpersCairo.h @@ -140,9 +140,15 @@ static inline cairo_extend_t GfxExtendToCairoExtend(ExtendMode extend) { static inline cairo_format_t GfxFormatToCairoFormat(SurfaceFormat format) { switch (format) { - case SurfaceFormat::A8R8G8B8_UINT32: + case SurfaceFormat::B8G8R8A8: + case SurfaceFormat::R8G8B8A8: + case SurfaceFormat::A8R8G8B8: + // case SurfaceFormat::A8R8G8B8_UINT32: return CAIRO_FORMAT_ARGB32; - case SurfaceFormat::X8R8G8B8_UINT32: + case SurfaceFormat::B8G8R8X8: + case SurfaceFormat::R8G8B8X8: + case SurfaceFormat::X8R8G8B8: + // case SurfaceFormat::X8R8G8B8_UINT32: return CAIRO_FORMAT_RGB24; case SurfaceFormat::A8: return CAIRO_FORMAT_A8; @@ -150,7 +156,7 @@ static inline cairo_format_t GfxFormatToCairoFormat(SurfaceFormat format) { return CAIRO_FORMAT_RGB16_565; default: gfxCriticalError() << "Unknown image format " << (int)format; - return CAIRO_FORMAT_ARGB32; + return CAIRO_FORMAT_INVALID; } }