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

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

Issue 2652313004: Implement color-gamut media query (Closed)
Patch Set: fix windows build Created 3 years, 10 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 "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 28 matching lines...) Expand all
39 GammaNull = 4, 39 GammaNull = 4,
40 GammaFail = 5, 40 GammaFail = 5,
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 enum Gamut {
50 // Values synced with 'Gamut' in src/tools/metrics/histograms/histograms.xml
51 GamutUnknown = 0,
52 GamutLessThanNTSC = 1,
53 GamutNTSC = 2,
54 GamutSRGB = 3,
55 GamutAlmostP3 = 4,
56 GamutP3 = 5,
57 GamutAdobeRGB = 6,
58 GamutWide = 7,
59 GamutBT2020 = 8,
60 GamutProPhoto = 9,
61 GamutUltraWide = 10,
62 GamutEnd
63 };
64
65 static void countDecodedImageType(const String& type); 49 static void countDecodedImageType(const String& type);
66 static void countImageOrientation(const ImageOrientationEnum); 50 static void countImageOrientation(const ImageOrientationEnum);
67 static void countImageGammaAndGamut(SkColorSpace*); 51 static void countImageGammaAndGamut(SkColorSpace*);
68 static void countOutputGammaAndGamut(SkColorSpace*); 52 static void countOutputGammaAndGamut(SkColorSpace*);
69 53
70 private: 54 private:
71 static Gamma getColorSpaceGamma(SkColorSpace*); 55 static Gamma getColorSpaceGamma(SkColorSpace*);
72 static Gamut getColorSpaceGamut(SkColorSpace*);
73 }; 56 };
74 57
75 } // namespace blink 58 } // namespace blink
76 59
77 #endif 60 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698