OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Command queue is the only way to modify images. | 8 * Command queue is the only way to modify images. |
9 * Supports undo/redo. | 9 * Supports undo/redo. |
10 * Command execution is asynchronous (callback-based). | 10 * Command execution is asynchronous (callback-based). |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 446 |
447 function onProgressInvisible(updatedRow, rowCount) { | 447 function onProgressInvisible(updatedRow, rowCount) { |
448 if (updatedRow == rowCount) { | 448 if (updatedRow == rowCount) { |
449 callback(result); | 449 callback(result); |
450 } | 450 } |
451 } | 451 } |
452 | 452 |
453 filter.applyByStrips(result, srcCanvas, this.filter_, | 453 filter.applyByStrips(result, srcCanvas, this.filter_, |
454 uiContext.imageView ? onProgressVisible : onProgressInvisible); | 454 uiContext.imageView ? onProgressVisible : onProgressInvisible); |
455 }; | 455 }; |
OLD | NEW |