summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-03-13 15:07:52 -0700
committerChris Craik <ccraik@google.com>2015-03-18 16:10:24 -0700
commite2bb380bc26749782c873e5488cfdf4e42b27346 (patch)
tree3e05a9dfe166da3649ac2f1673274785233d6912 /libs/hwui/PathCache.h
parent8c6e4b398040ec0b52a7cc0cef54728f126e3841 (diff)
downloadframeworks_base-e2bb380bc26749782c873e5488cfdf4e42b27346.zip
frameworks_base-e2bb380bc26749782c873e5488cfdf4e42b27346.tar.gz
frameworks_base-e2bb380bc26749782c873e5488cfdf4e42b27346.tar.bz2
Use glops for text rendering
Change-Id: I5e155c8baf3149f0ff231ec3c89dbff6bb8eae92
Diffstat (limited to 'libs/hwui/PathCache.h')
-rw-r--r--libs/hwui/PathCache.h20
1 files changed, 16 insertions, 4 deletions
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<SkBitmap*> > task() const {
return mTask;