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

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

Issue 2629133002: Avoid UI unresponsiveness when switching between large images. (Closed)
Patch Set: Remove @private from the constant to be consistent with others. Created 3 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
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/image_editor/image_view.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_view.js b/ui/file_manager/gallery/js/image_editor/image_view.js
index 0ee887feb297877d0aefa50b9dff93c7949aeb57..f97c89972dd0a9ebbffb6424c8e3d862ac7dd971 100644
--- a/ui/file_manager/gallery/js/image_editor/image_view.js
+++ b/ui/file_manager/gallery/js/image_editor/image_view.js
@@ -138,7 +138,7 @@ ImageView.LoadTarget = {
* @return {ImageView.LoadTarget} Load target.
*/
ImageView.getLoadTarget = function(item, effect) {
- if (item.contentImage)
+ if (item.contentImage && !item.requireLongRenderingTime())
return ImageView.LoadTarget.CACHED_MAIN_IMAGE;
// Only show thumbnails if there is no effect or the effect is Slide or
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698