| Index: chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
|
| diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js b/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
|
| index fc36748d60a11f0bdbccc71cb7350ed91b4ff08e..c7648afaa781a5bf9b1e63fa24c8f2818ff598d7 100644
|
| --- a/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
|
| +++ b/chrome/browser/resources/file_manager/js/image_editor/image_encoder.js
|
| @@ -71,10 +71,12 @@ ImageEncoder.buildBlob = function(
|
|
|
| quality = quality || 0.5;
|
|
|
| + ImageUtil.trace.resetTimer('dataurl');
|
| // WebKit does not support canvas.toBlob yet so canvas.toDataURL is
|
| // the only way to use the Chrome built-in image encoder.
|
| var dataURL =
|
| canvas.toDataURL(metadataEncoder.getMetadata().mimeType, quality);
|
| + ImageUtil.trace.reportTimer('dataurl');
|
|
|
| var encodedImage = ImageEncoder.decodeDataURL(dataURL);
|
|
|
|
|