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

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

Issue 2155983003: Push GrPipelineBuilder down to the drawBatch calls in the TextContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 private: 287 private:
288 GrAtlasTextBlob() 288 GrAtlasTextBlob()
289 : fMaxMinScale(-SK_ScalarMax) 289 : fMaxMinScale(-SK_ScalarMax)
290 , fMinMaxScale(SK_ScalarMax) 290 , fMinMaxScale(SK_ScalarMax)
291 , fTextType(0) {} 291 , fTextType(0) {}
292 292
293 void appendLargeGlyph(GrGlyph* glyph, SkGlyphCache* cache, const SkGlyph& sk Glyph, 293 void appendLargeGlyph(GrGlyph* glyph, SkGlyphCache* cache, const SkGlyph& sk Glyph,
294 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); 294 SkScalar x, SkScalar y, SkScalar scale, bool applyVM);
295 295
296 inline void flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBuilder, const GrClip&, 296 inline void flushRun(GrDrawContext* dc, const GrPaint&, const GrClip&,
297 int run, const SkMatrix& viewMatrix, SkScalar x, SkScal ar y, GrColor color, 297 int run, const SkMatrix& viewMatrix, SkScalar x, SkScal ar y,
298 const SkPaint& skPaint, const SkSurfaceProps& props, 298 const SkPaint& skPaint, const SkSurfaceProps& props,
299 const GrDistanceFieldAdjustTable* distanceAdjustTable, 299 const GrDistanceFieldAdjustTable* distanceAdjustTable,
300 GrBatchFontCache* cache); 300 GrBatchFontCache* cache);
301 301
302 void flushBigGlyphs(GrContext* context, GrDrawContext* dc, 302 void flushBigGlyphs(GrContext* context, GrDrawContext* dc,
303 const GrClip& clip, const SkPaint& skPaint, 303 const GrClip& clip, const SkPaint& skPaint,
304 const SkMatrix& viewMatrix, SkScalar x, SkScalar y, 304 const SkMatrix& viewMatrix, SkScalar x, SkScalar y,
305 const SkIRect& clipBounds); 305 const SkIRect& clipBounds);
306 306
307 void flushRunAsPaths(GrContext* context, 307 void flushRunAsPaths(GrContext* context,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // We can reuse distance field text, but only if the new viewmatrix would no t result in 557 // We can reuse distance field text, but only if the new viewmatrix would no t result in
558 // a mip change. Because there can be multiple runs in a blob, we track the overall 558 // a mip change. Because there can be multiple runs in a blob, we track the overall
559 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen 559 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen
560 SkScalar fMaxMinScale; 560 SkScalar fMaxMinScale;
561 SkScalar fMinMaxScale; 561 SkScalar fMinMaxScale;
562 int fRunCount; 562 int fRunCount;
563 uint8_t fTextType; 563 uint8_t fTextType;
564 }; 564 };
565 565
566 #endif 566 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698