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" |
(...skipping 30 matching lines...) Expand all Loading... |
41 GammaInvalid = 6, | 41 GammaInvalid = 6, |
42 GammaExponent = 7, | 42 GammaExponent = 7, |
43 GammaTable = 8, | 43 GammaTable = 8, |
44 GammaParametric = 9, | 44 GammaParametric = 9, |
45 GammaNamed = 10, | 45 GammaNamed = 10, |
46 GammaEnd = GammaNamed + 1, | 46 GammaEnd = GammaNamed + 1, |
47 }; | 47 }; |
48 | 48 |
49 static void countDecodedImageType(const String& type); | 49 static void countDecodedImageType(const String& type); |
50 static void countImageOrientation(const ImageOrientationEnum); | 50 static void countImageOrientation(const ImageOrientationEnum); |
51 static void countGamma(SkColorSpace*); | 51 static void countImageGamma(SkColorSpace*); |
| 52 static void countOutputGamma(SkColorSpace*); |
| 53 |
| 54 private: |
| 55 static Gamma getColorSpaceGamma(SkColorSpace*); |
52 }; | 56 }; |
53 | 57 |
54 } // namespace blink | 58 } // namespace blink |
55 | 59 |
56 #endif | 60 #endif |
OLD | NEW |