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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h

Issue 2177933002: Use UMA to track characteristics of dst color spaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef BitmapImageMetrics_h 5 #ifndef BitmapImageMetrics_h
6 #define BitmapImageMetrics_h 6 #define BitmapImageMetrics_h
7 7
8 #include "SkColorSpace.h"
f(malita) 2016/07/25 16:13:54 third_party/skia/include/core/SkColorSpace.h
msarett 2016/07/25 16:50:51 Done.
8 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
9 #include "platform/graphics/ImageOrientation.h" 10 #include "platform/graphics/ImageOrientation.h"
10 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
11 #include "wtf/Forward.h" 12 #include "wtf/Forward.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class PLATFORM_EXPORT BitmapImageMetrics { 16 class PLATFORM_EXPORT BitmapImageMetrics {
16 STATIC_ONLY(BitmapImageMetrics); 17 STATIC_ONLY(BitmapImageMetrics);
17 public: 18 public:
18 // Values synced with 'DecodedImageType' in src/tools/metrics/histograms/his tograms.xml 19 // Values synced with 'DecodedImageType' in src/tools/metrics/histograms/his tograms.xml
19 enum DecodedImageType { 20 enum DecodedImageType {
20 ImageUnknown = 0, 21 ImageUnknown = 0,
21 ImageJPEG = 1, 22 ImageJPEG = 1,
22 ImagePNG = 2, 23 ImagePNG = 2,
23 ImageGIF = 3, 24 ImageGIF = 3,
24 ImageWebP = 4, 25 ImageWebP = 4,
25 ImageICO = 5, 26 ImageICO = 5,
26 ImageBMP = 6, 27 ImageBMP = 6,
27 DecodedImageTypeEnumEnd = ImageBMP + 1 28 DecodedImageTypeEnumEnd = ImageBMP + 1
28 }; 29 };
29 30
31 enum Gamma {
32 // Values synced with 'Gamma' in src/tools/metrics/histograms/histograms .xml
33 GammaLinear = 0,
34 GammaSRGB = 1,
35 Gamma2Dot2 = 2,
36 GammaNonStandard = 3,
37 GammaEmpty = 4,
38 GammaNull = 5,
39 GammaFail = 6,
40 GammaEnd = GammaFail + 1,
41 };
42
30 static void countDecodedImageType(const String& type); 43 static void countDecodedImageType(const String& type);
31 static void countImageOrientation(const ImageOrientationEnum); 44 static void countImageOrientation(const ImageOrientationEnum);
45 static void countGamma(SkColorSpace*);
32 }; 46 };
33 47
34 } // namespace blink 48 } // namespace blink
35 49
36 #endif 50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698