summaryrefslogtreecommitdiffstats
path: root/libs/hwui/font
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-06-18 15:53:53 -0700
committerRomain Guy <romainguy@google.com>2013-06-18 15:53:53 -0700
commit31e08e953fe7bdb1b1cbc247156cb6a19917a2f1 (patch)
treea9b1d4f934c40a6c1a6e3c32e10451fc323ebaea /libs/hwui/font
parent2d5945e88731787babce1061f44cd54f02eeefc5 (diff)
downloadframeworks_base-31e08e953fe7bdb1b1cbc247156cb6a19917a2f1.zip
frameworks_base-31e08e953fe7bdb1b1cbc247156cb6a19917a2f1.tar.gz
frameworks_base-31e08e953fe7bdb1b1cbc247156cb6a19917a2f1.tar.bz2
Share Caches' index buffer with FontRenderer
This reduces state changes when we draw 9patches and text together, which happens *a lot*. Also disable the NV profiling extension by default since it doesn't play nice with display lists deferrals. To enable it set debug.hwui.nv_profiling to true. Change-Id: I518b44b7d294e5def10c78911ceb9f01ae401609
Diffstat (limited to 'libs/hwui/font')
-rw-r--r--libs/hwui/font/CacheTexture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/font/CacheTexture.h b/libs/hwui/font/CacheTexture.h
index 8c3ea0b..208b1ff 100644
--- a/libs/hwui/font/CacheTexture.h
+++ b/libs/hwui/font/CacheTexture.h
@@ -151,9 +151,9 @@ public:
float x3, float y3, float u3, float v3,
float x4, float y4, float u4, float v4) {
TextureVertex* mesh = mMesh + mCurrentQuad * 4;
- TextureVertex::set(mesh++, x1, y1, u1, v1);
TextureVertex::set(mesh++, x2, y2, u2, v2);
TextureVertex::set(mesh++, x3, y3, u3, v3);
+ TextureVertex::set(mesh++, x1, y1, u1, v1);
TextureVertex::set(mesh++, x4, y4, u4, v4);
mCurrentQuad++;
}