Bug 24685

Summary: Use Skia integer primitives for drawing Chromium Linux scrollbars
Product: WebKit Reporter: Adam Langley <agl>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
patch
fishd: review-
patch fishd: review+

Adam Langley
Reported 2009-03-18 16:54:00 PDT
The Skia drawLine function takes subpixel values and attempts to draw a line with subpixel precision. This is complex and slow for drawing scrollbars which use only vertical and horizontal lines. This changes the Chromium Linux scrollbar code to use drawIRect. Layout test changes will be in the Chromium tree.
Attachments
patch (6.88 KB, patch)
2009-03-18 16:55 PDT, Adam Langley
fishd: review-
patch (7.13 KB, patch)
2009-03-24 16:37 PDT, Adam Langley
fishd: review+
Adam Langley
Comment 1 2009-03-18 16:55:00 PDT
Darin Fisher (:fishd, Google)
Comment 2 2009-03-23 11:40:21 PDT
Comment on attachment 28737 [details] patch > +static void drawVertLine(SkCanvas* canvas, int x, int y1, int y2, const SkPaint& paint) { > + SkIRect skrect; > + skrect.set(x, y1, x + 1, y2 + 1); > + canvas->drawIRect(skrect, paint); > +} nit: please use webkit style (4 space indent, bracket on newline). there are a lot of these style violations in this patch as well as in the previous file. please fix :)
Adam Langley
Comment 3 2009-03-24 16:37:15 PDT
Darin Fisher (:fishd, Google)
Comment 4 2009-03-24 17:03:10 PDT
Note You need to log in before you can comment on or make changes to this bug.