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

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

Issue 1889453002: Tweak distance field path renderer behavior in gamma-correct mode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebased, plumbed gamma-correctness via DrawPathArgs, fixed typos from most recent change Created 4 years, 8 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 | « gm/surface.cpp ('k') | include/gpu/GrPaint.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 2014 Google Inc. 2 * Copyright 2014 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 SkSurfaceProps_DEFINED 8 #ifndef SkSurfaceProps_DEFINED
9 #define SkSurfaceProps_DEFINED 9 #define SkSurfaceProps_DEFINED
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 /** 58 /**
59 * This flag causes sRGB inputs to the color pipeline (images and other sRGB-tagged 59 * This flag causes sRGB inputs to the color pipeline (images and other sRGB-tagged
60 * colors) to be gamma-corrected (converted to linear) before use. With out this flag, 60 * colors) to be gamma-corrected (converted to linear) before use. With out this flag,
61 * texture scaling and filtering is not gamma correct, preserving the b ehavior of Skia 61 * texture scaling and filtering is not gamma correct, preserving the b ehavior of Skia
62 * up through 2015. 62 * up through 2015.
63 * 63 *
64 * It is recommended to enable this flag when rendering to an sRGB or f loating point 64 * It is recommended to enable this flag when rendering to an sRGB or f loating point
65 * surface. 65 * surface.
66 */ 66 */
67 kGammaCorrect_Flag = 1 << 3, 67 kGammaCorrect_Flag = 1 << 3,
68 }; 68 };
69 /** Deprecated alias used by Chromium. Will be removed. */ 69 /** Deprecated alias used by Chromium. Will be removed. */
70 static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_ Flag; 70 static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_ Flag;
71 71
72 SkSurfaceProps(uint32_t flags, SkPixelGeometry); 72 SkSurfaceProps(uint32_t flags, SkPixelGeometry);
73 73
74 enum InitType { 74 enum InitType {
75 kLegacyFontHost_InitType 75 kLegacyFontHost_InitType
76 }; 76 };
77 SkSurfaceProps(InitType); 77 SkSurfaceProps(InitType);
(...skipping 11 matching lines...) Expand all
89 bool isGammaCorrect() const { return SkToBool(fFlags & kGammaCorrect_Flag); } 89 bool isGammaCorrect() const { return SkToBool(fFlags & kGammaCorrect_Flag); }
90 90
91 private: 91 private:
92 SkSurfaceProps(); 92 SkSurfaceProps();
93 93
94 uint32_t fFlags; 94 uint32_t fFlags;
95 SkPixelGeometry fPixelGeometry; 95 SkPixelGeometry fPixelGeometry;
96 }; 96 };
97 97
98 #endif 98 #endif
OLDNEW
« no previous file with comments | « gm/surface.cpp ('k') | include/gpu/GrPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698