From e2bb380bc26749782c873e5488cfdf4e42b27346 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 13 Mar 2015 15:07:52 -0700 Subject: Use glops for text rendering Change-Id: I5e155c8baf3149f0ff231ec3c89dbff6bb8eae92 --- libs/hwui/PathCache.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'libs/hwui/PathCache.h') diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h index 23e35cb..4297693 100644 --- a/libs/hwui/PathCache.h +++ b/libs/hwui/PathCache.h @@ -59,7 +59,19 @@ class Caches; * Alpha texture used to represent a path. */ struct PathTexture: public Texture { - PathTexture(Caches& caches): Texture(caches) { + PathTexture(Caches& caches, float left, float top, + float offset, int width, int height, int generation) + : Texture(caches) + , left(left) + , top(top) + , offset(offset) { + this->width = width; + this->height = height; + this->generation = generation; + } + PathTexture(Caches& caches, int generation) + : Texture(caches) { + this->generation = generation; } ~PathTexture() { @@ -69,15 +81,15 @@ struct PathTexture: public Texture { /** * Left coordinate of the path bounds. */ - float left; + float left = 0; /** * Top coordinate of the path bounds. */ - float top; + float top = 0; /** * Offset to draw the path at the correct origin. */ - float offset; + float offset = 0; sp > task() const { return mTask; -- cgit v1.1