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

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

Issue 2310443002: Delete kInvalid_GammaNamed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 "wtf/Threading.h" 8 #include "wtf/Threading.h"
9 #include "wtf/text/WTFString.h" 9 #include "wtf/text/WTFString.h"
10 10
(...skipping 30 matching lines...) Expand all
41 switch (skGamma) { 41 switch (skGamma) {
42 case SkColorSpace::kLinear_GammaNamed: 42 case SkColorSpace::kLinear_GammaNamed:
43 gamma = GammaLinear; 43 gamma = GammaLinear;
44 break; 44 break;
45 case SkColorSpace::kSRGB_GammaNamed: 45 case SkColorSpace::kSRGB_GammaNamed:
46 gamma = GammaSRGB; 46 gamma = GammaSRGB;
47 break; 47 break;
48 case SkColorSpace::k2Dot2Curve_GammaNamed: 48 case SkColorSpace::k2Dot2Curve_GammaNamed:
49 gamma = Gamma2Dot2; 49 gamma = Gamma2Dot2;
50 break; 50 break;
51 case SkColorSpace::kInvalid_GammaNamed:
52 gamma = GammaInvalid;
53 break;
54 default: 51 default:
55 if (colorSpace->gammasAreMatching()) { 52 if (colorSpace->gammasAreMatching()) {
56 if (colorSpace->gammasAreValues()) { 53 if (colorSpace->gammasAreValues()) {
57 gamma = GammaExponent; 54 gamma = GammaExponent;
58 } else if (colorSpace->gammasAreParams()) { 55 } else if (colorSpace->gammasAreParams()) {
59 gamma = GammaParametric; 56 gamma = GammaParametric;
60 } else if (colorSpace->gammasAreTables()) { 57 } else if (colorSpace->gammasAreTables()) {
61 gamma = GammaTable; 58 gamma = GammaTable;
62 } else if (colorSpace->gammasAreNamed()) { 59 } else if (colorSpace->gammasAreNamed()) {
63 gamma = GammaNamed; 60 gamma = GammaNamed;
64 } else { 61 } else {
65 gamma = GammaFail; 62 gamma = GammaFail;
66 } 63 }
67 } else { 64 } else {
68 gamma = GammaNonStandard; 65 gamma = GammaNonStandard;
69 } 66 }
70 break; 67 break;
71 } 68 }
72 69
73 gammaNamedHistogram.count(gamma); 70 gammaNamedHistogram.count(gamma);
74 } else { 71 } else {
75 gammaNamedHistogram.count(GammaNull); 72 gammaNamedHistogram.count(GammaNull);
76 } 73 }
77 } 74 }
78 75
79 } // namespace blink 76 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698