[Webkit-unassigned] [Bug 74993] [EFL] Refactor the way using cairo in ewk_tiled_backing_store.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 27 01:24:54 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74993





--- Comment #7 from KwangHyuk <hyuki.kim at samsung.com>  2011-12-27 01:24:54 PST ---
(In reply to comment #3)
> (From update of attachment 120570 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=120570&action=review
> 
> > Source/WebKit/efl/ewk/ewk_tiled_model.cpp:249
> >      if (colorSpace == EVAS_COLORSPACE_ARGB8888) {
> >          bytes = area * 4;
> > -        stride = width * 4;
> > -        format = CAIRO_FORMAT_ARGB32;
> >      } else if (colorSpace == EVAS_COLORSPACE_RGB565_A5P) {
> >          bytes = area * 2;
> > -        stride = width * 2;
> > -        format = CAIRO_FORMAT_RGB16_565;
> >      } else {
> 
> remove brace for one statement.
> 
Ok, thank you. :)
I have just used style check script for the patch file.
I don't know why it couldn't detect this error.

> > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:31
> >  
> > +#include <RefPtrCairo.h>
> 
> please fix order and remove empty line.
> 
> > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:45
> > +    Eina_Bool ret = false;
> > +
> > +    RefPtr<cairo_t> cairo;
> > +    RefPtr<cairo_surface_t> surface;
> > +    int stride;
> > +    cairo_format_t format;
> > +    cairo_status_t status;
> 
> IMO, C++ can declare variable when it is required.
> 
Done.

> > Source/WebKit/efl/ewk/ewk_view_tiled.cpp:76
> > +    ret = ewk_view_paint_contents(priv, cairo.get(), &rect);
> >  
> > -    return ewk_view_paint_contents(priv, tile->cairo, &rect);
> > +    return ret;
> 
> ret is not necessary.
Finally done.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list