Simplify 2D context memory cost calculations
<rdar://problem/127601234>
Pull request: https://github.com/WebKit/WebKit/pull/28227
Committed 278797@main (6939c8db7b65): <https://commits.webkit.org/278797@main> Reviewed commits have been landed. Closing PR #28227 and removing active labels.