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

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

Issue 1552513003: Revert of Make draw* lines responsible for cache management (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext13reallytexutilsdf
Patch Set: Created 4 years, 11 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 | « include/core/SkPaint.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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 void push_back_run(int currRun) { 284 void push_back_run(int currRun) {
285 SkASSERT(currRun < fRunCount); 285 SkASSERT(currRun < fRunCount);
286 if (currRun > 0) { 286 if (currRun > 0) {
287 Run::SubRunInfo& newRun = fRuns[currRun].fSubRunInfo.back(); 287 Run::SubRunInfo& newRun = fRuns[currRun].fSubRunInfo.back();
288 Run::SubRunInfo& lastRun = fRuns[currRun - 1].fSubRunInfo.back(); 288 Run::SubRunInfo& lastRun = fRuns[currRun - 1].fSubRunInfo.back();
289 newRun.setAsSuccessor(lastRun); 289 newRun.setAsSuccessor(lastRun);
290 } 290 }
291 } 291 }
292 292
293 SkGlyphCache* setupCache(int runIndex,
294 const SkSurfaceProps& props,
295 const SkPaint& skPaint,
296 const SkMatrix* viewMatrix,
297 bool noGamma);
298
299 // Appends a glyph to the blob. If the glyph is too large, the glyph will b e appended 293 // Appends a glyph to the blob. If the glyph is too large, the glyph will b e appended
300 // as a path. 294 // as a path.
301 void appendGlyph(int runIndex, 295 void appendGlyph(int runIndex,
302 const SkRect& positions, 296 const SkRect& positions,
303 GrColor color, 297 GrColor color,
304 GrBatchTextStrike* strike, 298 GrBatchTextStrike* strike,
305 GrGlyph* glyph, 299 GrGlyph* glyph,
306 GrFontScaler* scaler, const SkGlyph& skGlyph, 300 GrFontScaler* scaler, const SkGlyph& skGlyph,
307 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); 301 SkScalar x, SkScalar y, SkScalar scale, bool applyVM);
308 302
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 void flushRunAsPaths(GrContext* context, 379 void flushRunAsPaths(GrContext* context,
386 GrDrawContext* dc, 380 GrDrawContext* dc,
387 const SkSurfaceProps& props, 381 const SkSurfaceProps& props,
388 const SkTextBlobRunIterator& it, 382 const SkTextBlobRunIterator& it,
389 const GrClip& clip, const SkPaint& skPaint, 383 const GrClip& clip, const SkPaint& skPaint,
390 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, 384 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix,
391 const SkIRect& clipBounds, SkScalar x, SkScalar y); 385 const SkIRect& clipBounds, SkScalar x, SkScalar y);
392 }; 386 };
393 387
394 #endif 388 #endif
OLDNEW
« no previous file with comments | « include/core/SkPaint.h ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698