diff options
author | robertphillips <robertphillips@google.com> | 2016-07-19 14:04:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-19 14:04:39 -0700 |
commit | ecbc15d46c32a0edd28c3ae16e64fa19e50e6362 (patch) | |
tree | 747a40b5d3e24fe0e8f6bcc14db7338b3f341b8d /src/gpu/text/GrStencilAndCoverTextContext.h | |
parent | d1bd2082c59826b5f54cdbc7354f91fe033ece41 (diff) |
Minor cleanup of GrStencilAndCoverTextContext
Split out of https://codereview.chromium.org/2163483002/ (Use SkFont in GrStencilAndCoverTextContext)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2165673002
Review-Url: https://codereview.chromium.org/2165673002
Diffstat (limited to 'src/gpu/text/GrStencilAndCoverTextContext.h')
-rw-r--r-- | src/gpu/text/GrStencilAndCoverTextContext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.h b/src/gpu/text/GrStencilAndCoverTextContext.h index d81cb7a00e..9b29719cb7 100644 --- a/src/gpu/text/GrStencilAndCoverTextContext.h +++ b/src/gpu/text/GrStencilAndCoverTextContext.h @@ -78,7 +78,7 @@ private: void setPosText(const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset); - void draw(GrContext*, GrDrawContext*, const GrPaint&, const GrClip&, GrColor, + void draw(GrContext*, GrDrawContext*, const GrPaint&, const GrClip&, const SkMatrix&, const SkSurfaceProps&, SkScalar x, SkScalar y, const SkIRect& clipBounds, GrAtlasTextContext* fallbackTextContext, const SkPaint& originalSkPaint) const; @@ -87,6 +87,8 @@ private: size_t computeSizeInCache() const; + bool isAntiAlias() const { return fFont.isAntiAlias(); } + private: typedef GrDrawPathRangeBatch::InstanceData InstanceData; |