Constrain the max size of the canvas
Constrain the max size of the canvas

Restrict the canvas to stay within a reasonable
fraction of the window.innerHeight to ensure it doesn't
grow unbounded in height.

This both keeps redraws quick by ensuring that only
visible content is painted and avoids the canvas
exceeding maximum supported sizes resulting in blank traces.

BUG=catapult:#2416

Review-Url: https://codereview.chromium.org/2572853005

benschmaus/catapult,benschmaus/catapult,catapult-project/catapult,catapult-project/catapult-csm,catapult-project/catapult,sahiljain/catapult,catapult-project/catapult,catapult-project/catapult-csm,sahiljain/catapult,catapult-project/catapult,sahiljain/catapult,benschmaus/catapult,sahiljain/catapult,benschmaus/catapult,catapult-project/catapult,benschmaus/catapult,catapult-project/catapult,catapult-project/catapult-csm,benschmaus/catapult,catapult-project/catapult-csm,sahiljain/catapult,sahiljain/catapult,catapult-project/catapult-csm,catapult-project/catapult-csm,benschmaus/catapult,catapult-project/catapult-csm,catapult-project/catapult