aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2014-10-16 06:20:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-16 06:20:35 -0700
commit7851a56895c9c076f73a835a7dd51d3c6180c16f (patch)
tree809b4cfc978748318582a6430e320efff4ec3b16 /include
parent8c0d2aab621445ce84aa77ee5425680aa899a459 (diff)
Change drawText() to generate positions and send to drawPosText()
The idea here is to have a central place that does layout for drawText(), and then always feed text through drawPosText(). This both makes all of the GrTextContexts consistent in drawText() output, and does a better job of stressing drawPosText(). Because of the effect of matrices on hinting and approximation error, the generated text is not 100% identical to that produced by the raster pipeline. BUG=skia:2778 Review URL: https://codereview.chromium.org/653133004
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPaint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 9f477d867b..21ad3eab20 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -1102,6 +1102,7 @@ private:
friend class SkDraw;
friend class SkGraphics; // So Term() can be called.
friend class SkPDFDevice;
+ friend class GrTextContext;
friend class GrBitmapTextContext;
friend class GrDistanceFieldTextContext;
friend class GrStencilAndCoverTextContext;