diff options
author | Derek Sollenberger <djsollen@google.com> | 2016-03-24 11:07:19 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2016-03-25 11:53:08 -0400 |
commit | 79abbf22d4f672208327546661e694d837f564a9 (patch) | |
tree | 438d2b765462f3b6973ccc355505dca5dfe701ec /libs/hwui/RecordingCanvas.h | |
parent | 5bee05960dcc415c28076d8efd2ff94c0f89f9fd (diff) |
Update HWUI tests to use minikin to layout fonts.
This update is a precondition for landing additional tests
that depend on the minkin layout implementation.
bug: 27675371
Change-Id: I9bb98bae6b39462246e42cf8acb968b7df05292d
Diffstat (limited to 'libs/hwui/RecordingCanvas.h')
-rw-r--r-- | libs/hwui/RecordingCanvas.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/hwui/RecordingCanvas.h b/libs/hwui/RecordingCanvas.h index 1eb4fa0b884f..acb88e2dc305 100644 --- a/libs/hwui/RecordingCanvas.h +++ b/libs/hwui/RecordingCanvas.h @@ -191,13 +191,16 @@ public: const SkPaint* paint) override; // Text - virtual void drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, - const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop, - float boundsRight, float boundsBottom, float totalAdvance) override; - virtual void drawGlyphsOnPath(const uint16_t* glyphs, int glyphCount, const SkPath& path, - float hOffset, float vOffset, const SkPaint& paint) override; virtual bool drawTextAbsolutePos() const override { return false; } +protected: + virtual void drawGlyphs(const uint16_t* text, const float* positions, int count, + const SkPaint& paint, float x, float y, + float boundsLeft, float boundsTop, float boundsRight, float boundsBottom, + float totalAdvance) override; + virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, + float hOffset, float vOffset, const SkPaint& paint) override; + private: const ClipBase* getRecordedClip() { return mState.writableSnapshot()->mutateClipArea().serializeClip(alloc()); |