Enlightenment CVS committal Author : doursse Project : e17 Module : proto
Dir : e17/proto/epdf/src/lib Modified Files: ewl_pdf.c poppler_page.cpp Log Message: add a ewl test =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/lib/ewl_pdf.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_pdf.c 17 Apr 2006 18:06:10 -0000 1.5 +++ ewl_pdf.c 27 May 2006 17:32:00 -0000 1.6 @@ -477,7 +477,7 @@ } evas_object_image_size_get(i->image, &i->ow, &i->oh); - evas_object_layer_set(i->image, ewl_widget_layer_sum_get(w)); + evas_object_smart_member_add(i->image, w->smart_object); if (w->fx_clip_box) evas_object_clip_set(i->image, w->fx_clip_box); =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/lib/poppler_page.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- poppler_page.cpp 17 Apr 2006 18:06:10 -0000 1.6 +++ poppler_page.cpp 27 May 2006 17:32:00 -0000 1.7 @@ -1,4 +1,5 @@ #include <stdlib.h> +#include <sys/time.h> #include <Evas.h> #include <Ecore_Data.h> @@ -16,6 +17,16 @@ #include "poppler_page.h" #include "poppler_page_transition.h" +double +get_time(void) +{ + struct timeval timev; + + gettimeofday(&timev, NULL); + + return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000); +} + Epdf_Page * epdf_page_new (const Epdf_Document *doc, int index) @@ -72,6 +83,8 @@ int width; int height; + double t1, t2; + white[0] = 255; white[1] = 255; white[2] = 255; @@ -106,9 +119,12 @@ width = output_dev->getBitmap()->getWidth(); height = output_dev->getBitmap()->getHeight(); +// printf ("%d %d\n", width, height); + t1 = get_time (); + evas_object_image_size_set(o, width, height); evas_object_image_fill_set(o, 0, 0, width, height); - +// evas_object_image_data_set(o, color_ptr); m = (unsigned int *)evas_object_image_data_get(o, 1); if (!m) goto sortie; @@ -116,6 +132,10 @@ memcpy (m, color_ptr, height * width * 4); evas_object_image_data_update_add(o, 0, 0, width, height); evas_object_resize(o, width, height); +// evas_object_image_alpha_set (o, 0); + + t2 = get_time (); + printf ("temps : %.5f\n", t2 - t1); sortie: delete output_dev; ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs