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

Side by Side Diff: src/gpu/text/GrAtlasTextBlob.h

Issue 1866293003: Decouple contrast boost from fake gamma. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Improve ignorePreBlend API, add storage type to enum 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 | « src/core/SkScalerContext.h ('k') | src/gpu/text/GrAtlasTextBlob.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 2015 Google Inc. 2 * Copyright 2015 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 GrAtlasTextBlob_DEFINED 8 #ifndef GrAtlasTextBlob_DEFINED
9 #define GrAtlasTextBlob_DEFINED 9 #define GrAtlasTextBlob_DEFINED
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // descriptor 141 // descriptor
142 void initOverride(int runIndex) { 142 void initOverride(int runIndex) {
143 Run& run = fRuns[runIndex]; 143 Run& run = fRuns[runIndex];
144 // Push back a new subrun to fill and set the override descriptor 144 // Push back a new subrun to fill and set the override descriptor
145 run.push_back(); 145 run.push_back();
146 run.fOverrideDescriptor.reset(new SkAutoDescriptor); 146 run.fOverrideDescriptor.reset(new SkAutoDescriptor);
147 } 147 }
148 148
149 SkGlyphCache* setupCache(int runIndex, 149 SkGlyphCache* setupCache(int runIndex,
150 const SkSurfaceProps& props, 150 const SkSurfaceProps& props,
151 SkPaint::FakeGamma fakeGamma, 151 uint32_t scalerContextFlags,
152 const SkPaint& skPaint, 152 const SkPaint& skPaint,
153 const SkMatrix* viewMatrix); 153 const SkMatrix* viewMatrix);
154 154
155 // Appends a glyph to the blob. If the glyph is too large, the glyph will b e appended 155 // Appends a glyph to the blob. If the glyph is too large, the glyph will b e appended
156 // as a path. 156 // as a path.
157 void appendGlyph(int runIndex, 157 void appendGlyph(int runIndex,
158 const SkRect& positions, 158 const SkRect& positions,
159 GrColor color, 159 GrColor color,
160 GrBatchTextStrike* strike, 160 GrBatchTextStrike* strike,
161 GrGlyph* glyph, 161 GrGlyph* glyph,
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // We can reuse distance field text, but only if the new viewmatrix would no t result in 547 // We can reuse distance field text, but only if the new viewmatrix would no t result in
548 // a mip change. Because there can be multiple runs in a blob, we track the overall 548 // a mip change. Because there can be multiple runs in a blob, we track the overall
549 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen 549 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen
550 SkScalar fMaxMinScale; 550 SkScalar fMaxMinScale;
551 SkScalar fMinMaxScale; 551 SkScalar fMinMaxScale;
552 int fRunCount; 552 int fRunCount;
553 uint8_t fTextType; 553 uint8_t fTextType;
554 }; 554 };
555 555
556 #endif 556 #endif
OLDNEW
« no previous file with comments | « src/core/SkScalerContext.h ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698