mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 17:48:01 +02:00
glitz: don't go fackback path for bitmap glyphs.
Test case bitmap font still passes with changes and improves performance a lot.
This commit is contained in:
parent
3b1d0d3519
commit
343d9ef030
1 changed files with 4 additions and 0 deletions
|
|
@ -1683,10 +1683,14 @@ _cairo_glitz_surface_font_init (cairo_glitz_surface_t *surface,
|
|||
drawable = glitz_surface_get_drawable (surface->surface);
|
||||
|
||||
switch (format) {
|
||||
case CAIRO_FORMAT_A1:
|
||||
case CAIRO_FORMAT_A8:
|
||||
surface_format =
|
||||
glitz_find_standard_format (drawable, GLITZ_STANDARD_A8);
|
||||
break;
|
||||
case CAIRO_FORMAT_RGB24:
|
||||
ASSERT_NOT_REACHED;
|
||||
break;
|
||||
case CAIRO_FORMAT_ARGB32:
|
||||
surface_format =
|
||||
glitz_find_standard_format (drawable, GLITZ_STANDARD_ARGB32);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue