OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | |
6 | |
7 | |
8 // Namespace object for the utilities. | 5 // Namespace object for the utilities. |
9 function ImageUtil() {} | 6 function ImageUtil() {} |
10 | 7 |
11 /** | 8 /** |
12 * Performance trace. | 9 * Performance trace. |
13 */ | 10 */ |
14 ImageUtil.trace = (function() { | 11 ImageUtil.trace = (function() { |
15 function PerformanceTrace() { | 12 function PerformanceTrace() { |
16 this.lines_ = {}; | 13 this.lines_ = {}; |
17 this.timers_ = {}; | 14 this.timers_ = {}; |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 * @return {string} Full name. | 685 * @return {string} Full name. |
689 */ | 686 */ |
690 ImageUtil.getMetricName = function(name) { | 687 ImageUtil.getMetricName = function(name) { |
691 return 'PhotoEditor.' + name; | 688 return 'PhotoEditor.' + name; |
692 }; | 689 }; |
693 | 690 |
694 /** | 691 /** |
695 * Used for metrics reporting, keep in sync with the histogram description. | 692 * Used for metrics reporting, keep in sync with the histogram description. |
696 */ | 693 */ |
697 ImageUtil.FILE_TYPES = ['jpg', 'png', 'gif', 'bmp', 'webp']; | 694 ImageUtil.FILE_TYPES = ['jpg', 'png', 'gif', 'bmp', 'webp']; |
OLD | NEW |