1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 var backImage; 6 7 function prepareBackground() { 8 backImage = document.getElementById('backImage'); 9 } 10 11 function drawBackground() { 12 canvasContext.drawImage(backImage, 0, 0, canvasWidth, canvasHeight); 13 } 14