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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_adjust.js

Issue 1608143002: support animated GIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add assert to pass closure compiler Created 4 years, 11 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
Index: ui/file_manager/gallery/js/image_editor/image_adjust.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_adjust.js b/ui/file_manager/gallery/js/image_editor/image_adjust.js
index 8c1b1c6953eca83a108261252b4625178898d19f..50a82f1b2171f5585a055d2a17d5e125c9657133 100644
--- a/ui/file_manager/gallery/js/image_editor/image_adjust.js
+++ b/ui/file_manager/gallery/js/image_editor/image_adjust.js
@@ -132,9 +132,12 @@ ImageEditor.Mode.Adjust.prototype.updatePreviewImage_ = function(options) {
this.canvas_ = this.getImageView().createOverlayCanvas();
this.getImageView().setupDeviceBuffer(this.canvas_);
- this.originalImageData_ = this.getImageView().getScreenImageDataWith(
+ var canvas = this.getImageView().getImageCanvasWith(
this.canvas_.width, this.canvas_.height);
- this.previewImageData_ = this.getImageView().getScreenImageDataWith(
+ var context = canvas.getContext('2d');
+ this.originalImageData_ = context.getImageData(0, 0,
+ this.canvas_.width, this.canvas_.height);
+ this.previewImageData_ = context.getImageData(0, 0,
this.canvas_.width, this.canvas_.height);
isPreviewImageInvalidated = true;
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/filter.js ('k') | ui/file_manager/gallery/js/image_editor/image_editor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698