OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Resources.h" | 8 #include "Resources.h" |
9 #include "SkCodec.h" | 9 #include "SkCodec.h" |
10 #include "SkColorSpace.h" | 10 #include "SkColorSpace.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 if (cs) { | 156 if (cs) { |
157 if (rec.fIsSRGB) { | 157 if (rec.fIsSRGB) { |
158 REPORTER_ASSERT(r, SkColorSpace::kSRGB_GammaNamed == cs->gammaNa
med()); | 158 REPORTER_ASSERT(r, SkColorSpace::kSRGB_GammaNamed == cs->gammaNa
med()); |
159 } else { | 159 } else { |
160 REPORTER_ASSERT(r, SkColorSpace::k2Dot2Curve_GammaNamed == cs->g
ammaNamed()); | 160 REPORTER_ASSERT(r, SkColorSpace::k2Dot2Curve_GammaNamed == cs->g
ammaNamed()); |
161 } | 161 } |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 SkImageInfo info = SkImageInfo::MakeS32(10, 10, kPremul_SkAlphaType); | 165 SkImageInfo info = SkImageInfo::MakeS32(10, 10, kPremul_SkAlphaType); |
166 REPORTER_ASSERT(r, kSRGB_SkColorProfileType == info.profileType()); | 166 REPORTER_ASSERT(r, info.gammaCloseToSRGB()); |
167 REPORTER_ASSERT(r, SkColorSpace::kSRGB_GammaNamed == info.colorSpace()->gamm
aNamed()); | |
168 } | 167 } |
OLD | NEW |