Trigger hardware accelerated canvas GC more aggressively.

A hardware accelerated canvas indirectly owns a number of GPU resources
and if they become too numerous we see drastic slowdowns. At the very
least we should let the GC know about the cost of an HTMLCanvasElement
so that it can correctly schedule garbage collects.

This makes test timeouts caused by buildup of HTMLCanvasElements in
canvas tests slightly less likely.

BUG=450699
R=jochen@chromium.org,junov@chromium.org

Review URL: https://codereview.chromium.org/910613003

git-svn-id: svn://svn.chromium.org/blink/trunk@190135 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed