Descriptioncc: SolidColorLayerImpl::AppendSolidQuads uses visible content rect
Huge solid layers can cause a lot of memory to be allocated because
append quads function would use the content_bounds, not the
visible_content_rect.
PLI now uses visible rect, but SCLI is still using the content
bounds, this should probably be addressed in a follow up, but I'm
not too worried about this since it always worked this way and
this is mostly used by unit tests. We can't simply pass the
visible rect because none of the unit tests set the visible rect,
and the visible rect is not passed from SCL to SCLI for tests that
don't directly interact with the SCLI.
BUG=423950
Committed: https://crrev.com/1610bcc9cf8f30c55d81d3d9aa2391f993667ee5
Cr-Commit-Position: refs/heads/master@{#301134}
Patch Set 1 #Patch Set 2 : Fix the unit test name #Patch Set 3 : Removed the code that set the visible rect #
Total comments: 8
Patch Set 4 : make unittest not spam 1 trillion failures if failures occur #Patch Set 5 : Address review comments #Patch Set 6 : Removed the correct visiblerect thing this time :) #
Total comments: 2
Patch Set 7 : Add full coverage to test #Patch Set 8 : Fixed PictureLayerImplTest.DrawSolidQuads issue #
Messages
Total messages: 21 (2 generated)
|