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

Unified Diff: src/gpu/batches/GrAtlasTextBatch.h

Issue 1466333003: Move GrAtlasTextBatch blob regeneration to template (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add inline qualifier Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/batches/GrAtlasTextBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrAtlasTextBatch.h
diff --git a/src/gpu/batches/GrAtlasTextBatch.h b/src/gpu/batches/GrAtlasTextBatch.h
index 63dfa30e6bb53076bc89fbd262c97c8ac8c7ad92..5997d4916781cd56abe2093d6d997fe62d3f3b20 100644
--- a/src/gpu/batches/GrAtlasTextBatch.h
+++ b/src/gpu/batches/GrAtlasTextBatch.h
@@ -170,12 +170,12 @@ private:
kLCDDistanceField_MaskType == fMaskType;
}
- inline void regenerateTextureCoords(GrGlyph* glyph, intptr_t vertex, size_t vertexStride);
-
- inline void regenerateColors(intptr_t vertex, size_t vertexStride, GrColor color);
-
- inline void regeneratePositions(intptr_t vertex, size_t vertexStride, SkScalar transX,
- SkScalar transY);
+ template <bool regenTexCoords, bool regenPos, bool regenCol, bool regenGlyphs>
+ inline void regenBlob(Target* target, FlushInfo* flushInfo, Blob* blob, Run* run,
+ TextInfo* info, SkGlyphCache** cache,
+ SkTypeface** typeface, GrFontScaler** scaler, const SkDescriptor** desc,
+ const GrGeometryProcessor* gp, int glyphCount, size_t vertexStride,
+ GrColor color, SkScalar transX, SkScalar transY);
inline void flush(GrVertexBatch::Target* target, FlushInfo* flushInfo);
« no previous file with comments | « no previous file | src/gpu/batches/GrAtlasTextBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698