зеркало из https://github.com/mozilla/gecko-dev.git
Bug 738688: Add supports for color patterns in the Azure-Thebes wrapper. r=jrmuizel
This commit is contained in:
Родитель
11a3429abb
Коммит
f4d3c36793
|
@ -159,6 +159,14 @@ gfxPattern::GetPattern(mozilla::gfx::DrawTarget *aTarget)
|
||||||
GraphicsExtend extend = (GraphicsExtend)cairo_pattern_get_extend(mPattern);
|
GraphicsExtend extend = (GraphicsExtend)cairo_pattern_get_extend(mPattern);
|
||||||
|
|
||||||
switch (cairo_pattern_get_type(mPattern)) {
|
switch (cairo_pattern_get_type(mPattern)) {
|
||||||
|
case CAIRO_PATTERN_TYPE_SOLID:
|
||||||
|
{
|
||||||
|
double r, g, b, a;
|
||||||
|
cairo_pattern_get_rgba(mPattern, &r, &g, &b, &a);
|
||||||
|
|
||||||
|
new (mColorPattern.addr()) ColorPattern(Color(r, g, b, a));
|
||||||
|
return mColorPattern.addr();
|
||||||
|
}
|
||||||
case CAIRO_PATTERN_TYPE_SURFACE:
|
case CAIRO_PATTERN_TYPE_SURFACE:
|
||||||
{
|
{
|
||||||
GraphicsFilter filter = (GraphicsFilter)cairo_pattern_get_filter(mPattern);
|
GraphicsFilter filter = (GraphicsFilter)cairo_pattern_get_filter(mPattern);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче