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

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

Issue 1711223003: Only use fake gamma with linear devices. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Formatting. Created 4 years, 10 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/SkPaint.cpp ('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 const SkPaint& skPaint, 152 const SkPaint& skPaint,
152 const SkMatrix* viewMatrix, 153 const SkMatrix* viewMatrix);
153 bool noGamma);
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,
162 GrFontScaler* scaler, const SkGlyph& skGlyph, 162 GrFontScaler* scaler, const SkGlyph& skGlyph,
163 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); 163 SkScalar x, SkScalar y, SkScalar scale, bool applyVM);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // We can reuse distance field text, but only if the new viewmatrix would no t result in 526 // We can reuse distance field text, but only if the new viewmatrix would no t result in
527 // a mip change. Because there can be multiple runs in a blob, we track the overall 527 // a mip change. Because there can be multiple runs in a blob, we track the overall
528 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen 528 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen
529 SkScalar fMaxMinScale; 529 SkScalar fMaxMinScale;
530 SkScalar fMinMaxScale; 530 SkScalar fMinMaxScale;
531 int fRunCount; 531 int fRunCount;
532 uint8_t fTextType; 532 uint8_t fTextType;
533 }; 533 };
534 534
535 #endif 535 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698