Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3722)

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/image_adjust.js

Issue 7541075: Pre-scaling images to speed up feedback in Image Editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/image_buffer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/image_editor/image_adjust.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_adjust.js b/chrome/browser/resources/file_manager/js/image_editor/image_adjust.js
index f00e78dbf4225f5ae9a1a5f8e6626588384ea4a9..c47283f903424acba0c4cc03783d32bc2a36e6a4 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_adjust.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_adjust.js
@@ -15,21 +15,21 @@ ImageEditor.Mode.Adjust.prototype = {__proto__: ImageEditor.Mode.prototype};
ImageEditor.Mode.Adjust.prototype.rollback = function() {
if (!this.backup_) return; // Did not do anything yet.
- this.getBuffer().drawImageData(this.backup_);
+ this.getContent().drawImageData(this.backup_, 0, 0);
this.backup_ = null;
this.repaint();
};
ImageEditor.Mode.Adjust.prototype.update = function(options) {
if (!this.backup_) {
- this.backup_ = this.getBuffer().copyImageData();
- this.scratch_ = this.getBuffer().copyImageData();
+ this.backup_ = this.getContent().copyImageData();
+ this.scratch_ = this.getContent().copyImageData();
}
ImageUtil.trace.resetTimer('filter');
this.filterFunc_(this.scratch_, this.backup_, options);
ImageUtil.trace.reportTimer('filter');
- this.getBuffer().drawImageData(this.scratch_);
+ this.getContent().drawImageData(this.scratch_, 0, 0);
this.repaint();
};
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/image_buffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698