| 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 "platform/wtf/Allocator.h" |
| 11 #include "platform/wtf/Forward.h" |
| 10 #include "third_party/skia/include/core/SkColorSpace.h" | 12 #include "third_party/skia/include/core/SkColorSpace.h" |
| 11 #include "wtf/Allocator.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 | 20 // Values synced with 'DecodedImageType' in |
| 21 // src/tools/metrics/histograms/histograms.xml | 21 // src/tools/metrics/histograms/histograms.xml |
| 22 enum DecodedImageType { | 22 enum DecodedImageType { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 51 static void countImageGammaAndGamut(SkColorSpace*); | 51 static void countImageGammaAndGamut(SkColorSpace*); |
| 52 static void countOutputGammaAndGamut(SkColorSpace*); | 52 static void countOutputGammaAndGamut(SkColorSpace*); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 static Gamma getColorSpaceGamma(SkColorSpace*); | 55 static Gamma getColorSpaceGamma(SkColorSpace*); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif | 60 #endif |
| OLD | NEW |