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

Side by Side Diff: include/core/SkColorSpace.h

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 | « bench/SkLinearBitmapPipelineBench.cpp ('k') | include/core/SkImageInfo.h » ('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 #ifndef SkColorSpace_DEFINED 8 #ifndef SkColorSpace_DEFINED
9 #define SkColorSpace_DEFINED 9 #define SkColorSpace_DEFINED
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const SkMatrix44& xyz() const { return fToXYZD50; } 69 const SkMatrix44& xyz() const { return fToXYZD50; }
70 70
71 /** 71 /**
72 * Returns true if the color space gamma is near enough to be approximated as sRGB. 72 * Returns true if the color space gamma is near enough to be approximated as sRGB.
73 */ 73 */
74 bool gammaCloseToSRGB() const { 74 bool gammaCloseToSRGB() const {
75 return kSRGB_GammaNamed == fGammaNamed || k2Dot2Curve_GammaNamed == fGam maNamed; 75 return kSRGB_GammaNamed == fGammaNamed || k2Dot2Curve_GammaNamed == fGam maNamed;
76 } 76 }
77 77
78 protected: 78 protected:
79
80 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named) ; 79 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named) ;
81 80
82 friend Named sk_deduce_named_from_colorspace(SkColorSpace*); 81 friend Named sk_deduce_named_from_colorspace(SkColorSpace*);
83 82
84 const GammaNamed fGammaNamed; 83 const GammaNamed fGammaNamed;
85 const SkMatrix44 fToXYZD50; 84 const SkMatrix44 fToXYZD50;
86 const Named fNamed; 85 const Named fNamed;
87 }; 86 };
88 87
89 #endif 88 #endif
OLDNEW
« no previous file with comments | « bench/SkLinearBitmapPipelineBench.cpp ('k') | include/core/SkImageInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698