Bug 79031

Summary: [EFL] Make a pair between evas_object_image_data_set/get.
Product: WebKit Reporter: JungJik Lee <jungjik.lee>
Component: WebKit EFLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, glima, gyuyoung.kim, hyuki.kim, hyunki.baik, lucas.de.marchi, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposal patch
none
revised patch 1 none

JungJik Lee
Reported 2012-02-20 06:43:30 PST
Following the guide of EFL(http://docs.enlightenment.org/auto/evas/group__Evas__Object__Image.html), we should make a pair between evas_object_image_data_get and set. Because when calling evas_object_image_data_get, the function increases the reference count. If the ref count is not null, the pixel data is kept inside evas object. So to return pixel resource, evas_object_image_data_set should be called.
Attachments
proposal patch (3.73 KB, patch)
2012-02-23 02:35 PST, JungJik Lee
no flags
revised patch 1 (3.78 KB, patch)
2012-02-24 08:41 PST, JungJik Lee
no flags
JungJik Lee
Comment 1 2012-02-23 02:35:34 PST
Created attachment 128445 [details] proposal patch
KwangHyuk
Comment 2 2012-02-23 05:00:42 PST
> Source/WebKit/efl/ChangeLog:8 > + - We get the pixel data when we create the cairo surface. We ? > Source/WebKit/efl/ChangeLog:10 > + We should make a pair between evas_object_image_data_set/get to return evas resource. I suggest you to specify the reason of evas_object_image_data_set too. So, it can be a complete sentence. > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:52 > + uint8_t* pixels = static_cast<uint8_t*>(evas_object_image_data_get(tile->image, EINA_TRUE)); EINA_TRUE should be replaced. > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:76 > + cairo_identity_matrix(cairo.get()); I don't think that cairo_identity_matrix() would be required. would you double check ?
KwangHyuk
Comment 3 2012-02-23 06:25:05 PST
> Source/WebKit/efl/ewk/ewk_view_tiled.cpp:71 > + cairo_scale(cairo.get(), tile->zoom, tile->zoom); In addition to my previous idea, this doesn't look necessary.
JungJik Lee
Comment 4 2012-02-24 08:23:23 PST
(In reply to comment #2) > > Source/WebKit/efl/ChangeLog:8 > > + - We get the pixel data when we create the cairo surface. > > We ? > I've changed the word. > > Source/WebKit/efl/ChangeLog:10 > > + We should make a pair between evas_object_image_data_set/get to return evas resource. > > I suggest you to specify the reason of evas_object_image_data_set too. > So, it can be a complete sentence. > I append more description. > > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:52 > > + uint8_t* pixels = static_cast<uint8_t*>(evas_object_image_data_get(tile->image, EINA_TRUE)); > > EINA_TRUE should be replaced. Done. > > > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:76 > > + cairo_identity_matrix(cairo.get()); > > I don't think that cairo_identity_matrix() would be required. would you double check ? It's removed.
JungJik Lee
Comment 5 2012-02-24 08:41:19 PST
Created attachment 128740 [details] revised patch 1
KwangHyuk
Comment 6 2012-02-24 17:12:12 PST
LGTM.
Zoltan Herczeg
Comment 7 2012-02-27 05:13:59 PST
Comment on attachment 128740 [details] revised patch 1 LGTM
WebKit Review Bot
Comment 8 2012-02-27 07:07:38 PST
Comment on attachment 128740 [details] revised patch 1 Clearing flags on attachment: 128740 Committed r108991: <http://trac.webkit.org/changeset/108991>
WebKit Review Bot
Comment 9 2012-02-27 07:07:43 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.