| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * @typedef {{ | 6 * @typedef {{ |
| 9 * cache: (boolean|undefined), | 7 * cache: (boolean|undefined), |
| 10 * priority: (number|undefined), | 8 * priority: (number|undefined), |
| 11 * taskId: number, | 9 * taskId: number, |
| 12 * timestamp: (number|undefined), | 10 * timestamp: (number|undefined), |
| 13 * url: string | 11 * url: string |
| 14 * }} | 12 * }} |
| 15 */ | 13 */ |
| 16 var LoadImageRequest; | 14 var LoadImageRequest; |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 this.image_.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAA' + | 445 this.image_.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAA' + |
| 448 'ABAAEAAAICTAEAOw=='; | 446 'ABAAEAAAICTAEAOw=='; |
| 449 | 447 |
| 450 this.xhr_.onload = function() {}; | 448 this.xhr_.onload = function() {}; |
| 451 this.xhr_.abort(); | 449 this.xhr_.abort(); |
| 452 | 450 |
| 453 // Dispose memory allocated by Canvas. | 451 // Dispose memory allocated by Canvas. |
| 454 this.canvas_.width = 0; | 452 this.canvas_.width = 0; |
| 455 this.canvas_.height = 0; | 453 this.canvas_.height = 0; |
| 456 }; | 454 }; |
| OLD | NEW |