Description2D Canvas: Refactor code re-attempting to allocate an imageBuffer.
m_hasCreatedImageBuffer prevents HTMLCanvasElement::buffer()
from continuously re-attempting to allocate an imageBuffer after the first
attempt failed. This has huge implications for performance in low memory
conditions.
m_hasCreatedImageBuffer was misnamed, so it ended-up being misused in several
places.
This CL renames m_hasCreatedImageBuffer to m_didFailToCreateImageBuffer, and
then m_didFailToCreateImageBuffer is used in only relevant places.
TEST=fast/canvas/canvas-extremely-large-dimensions.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162330
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : remove stale comment #Patch Set 4 : Clean up code re-attempting to allocate an imageBuffer. #Patch Set 5 : Use extremely instead of insanely. Amend test a bit. #
Total comments: 7
Patch Set 6 : Fix grammar nits. change 10000 to 100. #Patch Set 7 : Merge with CL 74533004 to test on win and mac. #
Messages
Total messages: 24 (0 generated)
|