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

Unified Diff: src/gpu/text/GrStencilAndCoverTextContext.h

Issue 1893133002: Add requireHWAA param to GrPipelineBuilder constructor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_create_data
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/text/GrStencilAndCoverTextContext.h
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.h b/src/gpu/text/GrStencilAndCoverTextContext.h
index b1faba11b0ba93e34646ef252a9744b2fe8cf3c9..b44783dd8b0c2dc7ec3685bc1414b151bbaee52b 100644
--- a/src/gpu/text/GrStencilAndCoverTextContext.h
+++ b/src/gpu/text/GrStencilAndCoverTextContext.h
@@ -73,6 +73,8 @@ private:
TextRun(const SkPaint& fontAndStroke);
~TextRun();
+ bool isAntiAlias() const { return fFont.isAntiAlias(); }
+
void setText(const char text[], size_t byteLength, SkScalar x, SkScalar y);
void setPosText(const char text[], size_t byteLength, const SkScalar pos[],

Powered by Google App Engine
This is Rietveld 408576698