mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 453726 - thebes does an unnecessary float->byte->float conversion on the alpha channel when color management is turned on. r=vlad
This commit is contained in:
parent
aabaf515af
commit
b76029e429
@ -637,7 +637,9 @@ gfxContext::SetColor(const gfxRGBA& c)
|
||||
1);
|
||||
gfxRGBA cms(packed, gfxRGBA::PACKED_ARGB);
|
||||
#endif
|
||||
cairo_set_source_rgba(mCairo, cms.r, cms.g, cms.b, cms.a);
|
||||
// Use the original alpha to avoid unnecessary float->byte->float
|
||||
// conversion errors
|
||||
cairo_set_source_rgba(mCairo, cms.r, cms.g, cms.b, c.a);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -103,8 +103,10 @@ gfxPattern::AddColorStop(gfxFloat offset, const gfxRGBA& c)
|
||||
1);
|
||||
gfxRGBA cms(packed, gfxRGBA::PACKED_ARGB);
|
||||
#endif
|
||||
// Use the original alpha to avoid unnecessary float->byte->float
|
||||
// conversion errors
|
||||
cairo_pattern_add_color_stop_rgba(mPattern, offset,
|
||||
cms.r, cms.g, cms.b, cms.a);
|
||||
cms.r, cms.g, cms.b, c.a);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user