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

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

Issue 382143004: Remove repaint callbacks from Viewport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index fafed2a7566835b4d574a7d03a4531c138d7c637..c5fbecd70577c6310e410644a9ba393db35a9f3f 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -29,21 +29,17 @@ function ImageEditor(
ImageUtil.removeChildren(this.container_);
- var document = this.container_.ownerDocument;
-
this.viewport_ = viewport;
this.viewport_.sizeByFrame(this.container_);
- this.buffer_ = new ImageBuffer();
- this.viewport_.addRepaintCallback(this.buffer_.draw.bind(this.buffer_));
-
this.imageView_ = imageView;
this.imageView_.addContentCallback(this.onContentUpdate_.bind(this));
+
+ this.buffer_ = new ImageBuffer();
this.buffer_.addOverlay(this.imageView_);
this.panControl_ = new ImageEditor.MouseControl(
this.rootContainer_, this.container_, this.getBuffer());
-
this.panControl_.setDoubleTapCallback(this.onDoubleTap_.bind(this));
this.mainToolbar_ = new ImageEditor.Toolbar(

Powered by Google App Engine
This is Rietveld 408576698