[chromium] ContentLayerPainter should clear rect to be painted
Created attachment 148164 [details] Patch
Created attachment 148165 [details] remove more redundant clears
Comment on attachment 148165 [details] remove more redundant clears The skia stuff looks ok, but I'll defer to enne or someone else more compositor-savvy for the rest.
Oh, and could we get some test coverage for this?
Comment on attachment 148165 [details] remove more redundant clears View in context: https://bugs.webkit.org/attachment.cgi?id=148165&action=review > Source/WebCore/platform/graphics/chromium/ScrollbarLayerChromium.cpp:-120 > - context.clearRect(contentRect); > - context.clip(contentRect); Is the implication that the canvas will now be cleared by the added code in ContentLayerPainter? Cuz I don't see how that can be, or is this being removed for a different reason?
Comment on attachment 148165 [details] remove more redundant clears View in context: https://bugs.webkit.org/attachment.cgi?id=148165&action=review > Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp:69 > + SkPaint paint; > + paint.setAntiAlias(false); > + paint.setXfermodeMode(SkXfermode::kClear_Mode); > + canvas->drawRect(contentRect, paint); > + canvas->clipRect(contentRect); I think this should maybe go in CanvasLayerTextureUpdater so that the root and scrollbars get cleared properly, since both of those use different painters other than ContentLayerPainter.
D'oh, will move it up.
Created attachment 148193 [details] clear in CanvasLayerTextureUpdater
Comment on attachment 148193 [details] clear in CanvasLayerTextureUpdater R=me.
Committed r120640: <http://trac.webkit.org/changeset/120640>