account.
When considering glyphs loading saved time, just use the load glyphs
requests.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72831
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
-_glyphs_request_check(Glyphs_Request *req)
+_glyphs_request_check(Glyphs_Request *req, Eina_Bool report_load)
{
unsigned int i;
Font_Entry *fe = req->fe;
{
unsigned int i;
Font_Entry *fe = req->fe;
req->answer[req->nanswer++] = ge;
#ifdef DEBUG_LOAD_TIME
// calculate average time saved when loading glyphs
req->answer[req->nanswer++] = ge;
#ifdef DEBUG_LOAD_TIME
// calculate average time saved when loading glyphs
- fe->gl_saved_time +=
- (fe->gl_load_time / fe->nglyphs);
+ if (report_load)
+ fe->gl_saved_time +=
+ (fe->gl_load_time / fe->nglyphs);
#endif
ge->fc->inuse++;
}
#endif
ge->fc->inuse++;
}
- if (_glyphs_request_check(req))
+ if (_glyphs_request_check(req, EINA_TRUE))
{
INF("Glyphs already loaded. Sending answer.");
_glyphs_loaded_send(req, rid);
{
INF("Glyphs already loaded. Sending answer.");
_glyphs_loaded_send(req, rid);
- _glyphs_request_check(req);
+ _glyphs_request_check(req, EINA_FALSE);
groups = _glyphs_group_create(req);
// Promote SHMs which are still cached and in use
groups = _glyphs_group_create(req);
// Promote SHMs which are still cached and in use