Summary: | [EFL][WK2] Rely more on C API in ewk_favicon_database | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
Component: | WebKit EFL | Assignee: | Chris Dumez <cdumez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, benjamin, gyuyoung.kim, kenneth, lucas.de.marchi, mikhail.pozdnyakov, naginenis, rakuco, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 107657 | ||||||||
Attachments: |
|
Description
Chris Dumez
2013-01-27 11:02:01 PST
Created attachment 184917 [details]
Patch
Created attachment 184918 [details]
Patch
Comment on attachment 184918 [details]
Patch
I am not entirely convinced this is necessary.
For port specific API, there is no need to force a C API between public APIs and Proxys (in my opinion). If GTK were to use the new, WKIconDatabaseTryGetCairoSurfaceForURL, then this would be helping consolidate WebKit2.
I r+ because the patch seems correct and you handle your port abstractions as you see fit.
Comment on attachment 184918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184918&action=review > Source/WebKit2/UIProcess/API/C/cairo/WKIconDatabaseCairo.h:34 > +WK_EXPORT cairo_surface_t* WKIconDatabaseTryGetCairoSurfaceForURL(WKIconDatabaseRef iconDatabase, WKURLRef url); Kenneth, I'm having doubts about this API now. Should we have an API that returns an Evas Object instead of a cairo surface? This makes more sense for EFL port and we really shouldn't expose cairo surfaces to applications. Comment on attachment 184918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184918&action=review >> Source/WebKit2/UIProcess/API/C/cairo/WKIconDatabaseCairo.h:34 >> +WK_EXPORT cairo_surface_t* WKIconDatabaseTryGetCairoSurfaceForURL(WKIconDatabaseRef iconDatabase, WKURLRef url); > > Kenneth, I'm having doubts about this API now. Should we have an API that returns an Evas Object instead of a cairo surface? This makes more sense for EFL port and we really shouldn't expose cairo surfaces to applications. In the EFL API it might make more sense to return an Evas Object, but our C API is slightly lower level so returning a cairo_surface_t seems fine, especially for special browser cases or so where the browser/client might want to store the images locally or so. (In reply to comment #5) > (From update of attachment 184918 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=184918&action=review > > >> Source/WebKit2/UIProcess/API/C/cairo/WKIconDatabaseCairo.h:34 > >> +WK_EXPORT cairo_surface_t* WKIconDatabaseTryGetCairoSurfaceForURL(WKIconDatabaseRef iconDatabase, WKURLRef url); > > > > Kenneth, I'm having doubts about this API now. Should we have an API that returns an Evas Object instead of a cairo surface? This makes more sense for EFL port and we really shouldn't expose cairo surfaces to applications. > > In the EFL API it might make more sense to return an Evas Object, but our C API is slightly lower level so returning a cairo_surface_t seems fine, especially for special browser cases or so where the browser/client might want to store the images locally or so. Ok, thanks for confirming. Let's land this then. Comment on attachment 184918 [details] Patch Clearing flags on attachment: 184918 Committed r140952: <http://trac.webkit.org/changeset/140952> All reviewed patches have been landed. Closing bug. |