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

Side by Side Diff: tests/ColorSpaceTest.cpp

Issue 2086583002: update callers to not use SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rm flag instead of commenting it out Created 4 years, 6 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 | « src/effects/gradients/Sk4fLinearGradient.cpp ('k') | tests/ImageIsOpaqueTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/effects/gradients/Sk4fLinearGradient.cpp ('k') | tests/ImageIsOpaqueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698