<div>Firstly, I make surface like this:</div>
<div><em> uint32_t* dst_buffer = create_buffer32(480*800, 0xffffff00);<br> cairo_surface_t* dst_surface = cairo_image_surface_create_for_data (<br> (unsigned char*)dst_buffer,<br>
CAIRO_FORMAT_ARGB32,<br> 480, 800,<br> cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, 480));<br>
cairo_t* cr = cairo_create(dst_surface); <br> cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); <br></em></div>
<div>Then, I set options using the functions like cairo_set_font_size, cairo_font_options_set_antialias.</div>
<div>Then, I checked the exection time of these 2 functions:</div>
<div>(gp_text is const char* with 40 characters) <br><em> cairo_move_to(cr, 0, 100);<br> cairo_show_text(cr,gp_text);</em></div>
<div><em></em> </div>
<div>If I use cairo_show_glyphs instead of cairo_show_text, can it be faster?</div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Thu, Feb 10, 2011 at 10:14 PM, Chris Wilson <span dir="ltr"><<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Thu, 10 Feb 2011 21:59:46 +0900, cooolheater <<a href="mailto:cooolheater@gmail.com">cooolheater@gmail.com</a>> wrote:<br>> I also tested for text, and the result was unaccountable.<br>><br>
> I couldn't find the method for scaling text in skia canvas,<br>> so I compared between cairo and skia with differentiating fontsize and text<br>> length,<br>> then the result was the skia is about 10 times faster than cairo in drawing<br>
> text.<br>><br>> I think the test was wrong, but I can't find the wrong point.<br>> I compared the execution time between SkCanvas::drawText and<br>> cairo_show_text.<br><br></div>This surprises me greatly, and I suspect your test as well. ;-)<br>
Without actually being able to read and run your tests, I can't advise or<br>see if we can fix cairo.<br>-Chris<br><font color="#888888"><br>--<br>Chris Wilson, Intel Open Source Technology Centre<br></font></blockquote>
</div><br>