| 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 #include "platform/graphics/BitmapImageMetrics.h" | 5 #include "platform/graphics/BitmapImageMetrics.h" |
| 6 | 6 |
| 7 #include "platform/Histogram.h" | 7 #include "platform/Histogram.h" |
| 8 #include "platform/graphics/ColorSpace.h" | 8 #include "platform/graphics/ColorSpaceGamut.h" |
| 9 #include "platform/wtf/Threading.h" | 9 #include "platform/wtf/Threading.h" |
| 10 #include "platform/wtf/text/WTFString.h" | 10 #include "platform/wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 void BitmapImageMetrics::CountDecodedImageType(const String& type) { | 14 void BitmapImageMetrics::CountDecodedImageType(const String& type) { |
| 15 DecodedImageType decoded_image_type = | 15 DecodedImageType decoded_image_type = |
| 16 type == "jpg" | 16 type == "jpg" |
| 17 ? kImageJPEG | 17 ? kImageJPEG |
| 18 : type == "png" | 18 : type == "png" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } else if (color_space->gammaIsLinear()) { | 80 } else if (color_space->gammaIsLinear()) { |
| 81 gamma = kGammaLinear; | 81 gamma = kGammaLinear; |
| 82 } else { | 82 } else { |
| 83 gamma = kGammaNonStandard; | 83 gamma = kGammaNonStandard; |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 return gamma; | 86 return gamma; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |