DescriptionFix memory issues in compositor_unittests
These LayerDelegates are trying to paint rectangles at offsets, but end
up always painting their rectangles at the layer origin. This causes
any scheduled paint not at the origin to not fill the entire
invalidation, leading to uninitialized pixels being drawn.
The fix is rather than drawing a rect at the origin, just fill the
entire clip with the right color. The clip is in the right place, so
this will do what the test intends.
Also fill the canvas in the DrawTreeLayerDelegate, which was always
leaving it uninitialized.
R=piman@chromium.org,danakj@chromium.org
BUG=421107
Committed: https://crrev.com/9b779de87d09341bb31eca53c8097a0f37f97c2d
Cr-Commit-Position: refs/heads/master@{#298817}
Patch Set 1 #
Messages
Total messages: 11 (3 generated)
|