| OLD | NEW |
| 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 "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/graphics/ImageOrientation.h" | 9 #include "platform/graphics/ImageOrientation.h" |
| 10 #include "third_party/skia/include/core/SkColorSpace.h" | 10 #include "third_party/skia/include/core/SkColorSpace.h" |
| 11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
| 12 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class PLATFORM_EXPORT BitmapImageMetrics { | 16 class PLATFORM_EXPORT BitmapImageMetrics { |
| 17 STATIC_ONLY(BitmapImageMetrics); | 17 STATIC_ONLY(BitmapImageMetrics); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 // Values synced with 'DecodedImageType' in src/tools/metrics/histograms/histo
grams.xml | 20 // Values synced with 'DecodedImageType' in |
| 21 // src/tools/metrics/histograms/histograms.xml |
| 21 enum DecodedImageType { | 22 enum DecodedImageType { |
| 22 ImageUnknown = 0, | 23 ImageUnknown = 0, |
| 23 ImageJPEG = 1, | 24 ImageJPEG = 1, |
| 24 ImagePNG = 2, | 25 ImagePNG = 2, |
| 25 ImageGIF = 3, | 26 ImageGIF = 3, |
| 26 ImageWebP = 4, | 27 ImageWebP = 4, |
| 27 ImageICO = 5, | 28 ImageICO = 5, |
| 28 ImageBMP = 6, | 29 ImageBMP = 6, |
| 29 DecodedImageTypeEnumEnd = ImageBMP + 1 | 30 DecodedImageTypeEnumEnd = ImageBMP + 1 |
| 30 }; | 31 }; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 static void countDecodedImageType(const String& type); | 49 static void countDecodedImageType(const String& type); |
| 49 static void countImageOrientation(const ImageOrientationEnum); | 50 static void countImageOrientation(const ImageOrientationEnum); |
| 50 static void countGamma(SkColorSpace*); | 51 static void countGamma(SkColorSpace*); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace blink | 54 } // namespace blink |
| 54 | 55 |
| 55 #endif | 56 #endif |
| OLD | NEW |