Descriptionui: Introduce CanvasPainter, remove PaintContext(gfx::Canvas*).
This adds a helper class called CanvasPainter for painting a View
into a bitmap-backed gfx::Canvas, for non-composited (off-screen)
painting.
This class uses a DisplayItemList-backed PaintContext, removing
the need for a PaintContext(gfx:Canvas*) constructor.
Also changes views_unittests to use DisplayItemList-backed
PaintContexts, so that the tests are explicitly testing View paint
cacheing.
R=sky
BUG=466426
Committed: https://crrev.com/b03846d6b0f0bfaa40fb0c3145f06f486549b474
Cr-Commit-Position: refs/heads/master@{#332963}
Patch Set 1 #
Total comments: 1
Patch Set 2 : canvaspainter: . #Patch Set 3 : canvaspainter: . #Patch Set 4 : canvaspainter: . #
Total comments: 4
Patch Set 5 : canvaspainter: . #
Messages
Total messages: 8 (2 generated)
|